예스스탁
예스스탁 답변
2020-05-28 14:35:58
안녕하세요
예스스탁입니다.
진입횟수를 하루에 한번으로 지정해 드립니다.
var : entry(0);
if bdate != bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition <= 0 and entry < 1 Then
buy("b",atlimit,dayhigh-PriceScale*120);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*120);
if MarketPosition >= 0 and entry < 1 Then
sell("s",atlimit,daylow+PriceScale*130);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*130);
if sdate != sdate[1] Then
SetStopEndofday(60000);
if bdate != bdate[1] Then
SetStopEndofday(0);
즐거운 하루되세요
> 푸른 님이 쓴 글입니다.
> 제목 : 수식어 부탁드립니다
> if MarketPosition <= 0 Then
buy("b",atlimit,dayhigh-PriceScale*120);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*120);
if MarketPosition >= 0 Then
sell("s",atlimit,daylow+PriceScale*130);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*130);
if sdate != sdate[1] Then
SetStopEndofday(60000);
if bdate != bdate[1] Then
SetStopEndofday(0);
-----------------------------
그래프는 위 수식어의 매도후 청산신호 입니다.
매수,매도의 청산후 진입금지 수식어 부탁드립니다.
당일 틱매매 진입반복
if MarketPosition <= 0 Then
buy("b",atlimit,dayhigh-PriceScale*50);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*40);
if MarketPosition >= 0 Then
sell("s",atlimit,daylow+PriceScale*700);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*40);
if sdate != sdate[1] Then
SetStopEndofday(55000);
if bdate != bdate[1] Then
SetStopEndofday(0);
--------------------------------------------------------------------------------
당일 틱매매 진입1회
var : entry(0);
if bdate != bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition <= 0 and entry < 1 Then
buy("b",atlimit,dayhigh-PriceScale*80);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*50);
if MarketPosition >= 0 and entry < 1 Then
sell("s",atlimit,daylow+PriceScale*1350);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*60);
if sdate != sdate[1] Then
SetStopEndofday(55000);
if bdate != bdate[1] Then
SetStopEndofday(0);
----------------------------------------------------
당일 틱매매진입1회(1분10분골든데드)
var : entry(0),B(false),S(false);
var1 = ma(C,1);
var2 = ma(C,10);
if bdate != bdate[1] Then
{
entry = 0;
B = false;
S = false;
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition <= 0 then
{
if B == false and bdate == bdate[1] and L <= dayhigh(0)[1]-PriceScale*80 Then
B = true;
if B == true and entry < 1 and crossup(var1,var2) Then
buy("b");
}
if MarketPosition == 1 Then
{
B = false;
if countif(H >= lowest(L,BarsSinceEntry)+PriceScale*50,BarsSinceEntry) >= 1 and CrossDown(var1,var2) Then
exitlong("bx");
}
if MarketPosition >= 0 then
{
if S == false and bdate == bdate[1] and H >= daylow(0)[1]+PriceScale*1300 Then
S = true;
if S == true and entry < 1 and CrossDown(var1,var2) Then
sell("s");
}
if MarketPosition == -1 Then
{
S = false;
if countif(L <= Highest(H,BarsSinceEntry)-PriceScale*130,BarsSinceEntry) >= 1 and CrossUp(var1,var2) Then
ExitShort("sx");
}
if sdate != sdate[1] Then
SetStopEndofday(55000);
if bdate != bdate[1] Then
SetStopEndofday(0);
> 푸른 님이 쓴 글입니다.
> 제목 : 수식어 부탁드립니다
> if MarketPosition <= 0 Then
buy("b",atlimit,dayhigh-PriceScale*120);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*120);
if MarketPosition >= 0 Then
sell("s",atlimit,daylow+PriceScale*130);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*130);
if sdate != sdate[1] Then
SetStopEndofday(60000);
if bdate != bdate[1] Then
SetStopEndofday(0);
-----------------------------
그래프는 위 수식어의 매도후 청산신호 입니다.
매수,매도의 청산후 진입금지 수식어 부탁드립니다.