예스스탁
예스스탁 답변
2021-09-16 11:29:42
안녕하세요
예스스탁입니다.
if TotalTrades == 0 or (TotalTrades >= 1 and abs(C-ExitPrice(1)) >= PriceScale*n틱) Then
("16도");
위와 같이 buy나 sell없이 지정하는 것은 아마 의미가 없는 내용이 됩니다.
buy나 sell과 같이 실제 진입함수가 있는 곳에 해당 조건을 추가하셔야 합니다.
Input : Period1(1), Period2(15), Period3(30), Period4(60), Period5(120),period6(240),Period7(480), Period8(960), Period9(1920), Period10(3840),period11(7680);
var : n틱(20),Sma1(0),Sma2(0),Sma3(0),Sma4(0),Sma5(0),sma6(0),Sma7(0),Sma8(0),Sma9(0),Sma10(0),sma11(0),OBVV(0),PositiveVolumeIndex(0),dpo(0);
Sma1 = ma(C,Period1);
Sma2 = ma(C,Period2);
Sma3 = ma(C,Period3);
Sma4 = ma(C,Period4);
Sma5 = ma(C,Period5);
sma6 = ma(c,period6);
Sma7 = ma(C,Period7);
Sma8 = ma(C,Period8);
Sma9 = ma(C,Period9);
Sma10 = ma(C,Period10);
sma11 = ma(c,period11);
if CrossUp (sma3,sma6) and sma6 < sma7 -PriceScale*1 Then
{
if MarketPosition == 0 Then
{
if TotalTrades == 0 or (TotalTrades >= 1 and abs(C-ExitPrice(1)) >= PriceScale*n틱) Then
Buy ("167수");
}
}
if CrossDown (sma3,sma6) and sma6 > sma7 +pricescale*1 Then
{
if MarketPosition == 0 Then
{
if TotalTrades == 0 or (TotalTrades >= 1 and abs(C-ExitPrice(1)) >= PriceScale*n틱) Then
Sell ("167도");
}
}
SetStopLoss(PriceScale*30,PointStop);
즐거운 하루되세요
> tnsflwls 님이 쓴 글입니다.
> 제목 : 시스템 작성의뢰
> 수고 하십니다 !
Input : Period1(1), Period2(15), Period3(30), Period4(60), Period5(120),period6(240),Period7(480), Period8(960), Period9(1920), Period10(3840),period11(7680);
var : n틱(20),Sma1(0),Sma2(0),Sma3(0),Sma4(0),Sma5(0),sma6(0),Sma7(0),Sma8(0),Sma9(0),Sma10(0),sma11(0),OBVV(0),PositiveVolumeIndex(0),dpo(0);
Sma1 = ma(C,Period1);
Sma2 = ma(C,Period2);
Sma3 = ma(C,Period3);
Sma4 = ma(C,Period4);
Sma5 = ma(C,Period5);
sma6 = ma(c,period6);
Sma7 = ma(C,Period7);
Sma8 = ma(C,Period8);
Sma9 = ma(C,Period9);
Sma10 = ma(C,Period10);
sma11 = ma(c,period11);
if CrossDown (sma1,sma6) Then
{
if MarketPosition == 0 Then
{
if TotalTrades == 0 or (TotalTrades >= 1 and abs(C-ExitPrice(1)) >= PriceScale*n틱) Then
("16도");
}
}
if CrossUp (sma1,sma6) Then
{
if MarketPosition == 0 Then
{
if TotalTrades == 0 or (TotalTrades >= 1 and abs(C-ExitPrice(1)) >= PriceScale*n틱) Then
("16수");
}
}
if CrossUp (sma3,sma6) and sma6 < sma7 -PriceScale*1 Then Buy ("167수");
if CrossDown (sma3,sma6) and sma6 > sma7 +pricescale*1 Then Sell ("167도");
SetStopLoss(PriceScale*30,PointStop);
수식조건 에서 매매가 체결되면 상하로 이전 매매 체결가격과 10틱이상 차이가 나고
수식조건 이 되면 다음 매매를 체결 하도록 수식좀 부탁 드립니다.
n틱(20) 은 수식조건과 관계없이 20틱 차이로 매매가 체결되네요,,,
*** 수고 하세요 ***