답변완료
부탁드립니다
수고하십니다
아래수식을 예스로 부탁드립니다
1.
수식1
조건up = L>H(2)*(1+ratio/100)&& L<H(1) && L(1)<H(2);
조건dn = L(2)>H *(1+ratio/100)&& L(2)<H(1) && L(1)<H;
라인 = if(조건dn,L(2),if(조건up, L,0));
ValueWhen(1, 조건up or 조건dn,라인);
수식2
조건up = L>H(2)*(1+ratio/100)&& L<H(1) && L(1)<H(2);
조건dn = L(2)>H *(1+ratio/100)&& L(2)<H(1) && L(1)<H;
라인 = if(조건dn, H ,if(조건up, H(2),0));
ValueWhen(1, 조건up or 조건dn,라인);
지표설정
ratio 5
2.
수식1
조건up = L>H(2)*(1+ratio/100)&& L<H(1) && L(1)<H(2);
ValueWhen(1,조건up,L);
수식2
조건up = L>H(2)*(1+ratio/100)&& L<H(1) && L(1)<H(2);
ValueWhen(1,조건up,H(2));
FVG(일목균형표)2/2
수식3
조건dn = L(2)>H *(1+ratio/100)&& L(2)<H(1) && L(1)<H;
ValueWhen(1,조건dn,L(2));
수식4
조건dn = L(2)>H *(1+ratio/100)&& L(2)<H(1) && L(1)<H;
ValueWhen(1,조건dn, H);
지표설정
ratio 5
2025-06-16
183
글번호 191768
지표
답변완료
문의
코스피 선물 5분봉
주간 데이트레이딩 기준입니다.
진입을 3번 하는 진입식이 있다고 할 때 거래 진입명칭은 b1,b2,b2 이렇게 나옵니다.
b1 이름으로 첫번째 진입
b2 이름으로 두번째,세번째 진입합니다.
청산식은 진입명으로 매칭하여 아래식을 사용해왔습니다.
요청사항)
진입명이 아니고 진입순서에 따른 청산식을 아래처럼 적용하고 싶습니다.
if MarketPosition== 1 Then
{
첫번째 진입 경우 Then
{
SetStopLoss(1,PointStop);
SetStopTrailing(2,0,PointStop);
SetStopProfittarget(3,PointStop);
}
두번째 진입 경우 Then
{
SetStopLoss(1.5,PointStop);
SetStopTrailing(2.5,0,PointStop);
SetStopProfittarget(3.5,PointStop);
}
세번째 진입 경우 Then
{
SetStopLoss(2,PointStop);
SetStopTrailing(3,0,PointStop);
SetStopProfittarget(4,PointStop);
}
Else
{
SetStopLoss(0);
SetStopTrailing(0,0);
SetStopProfittarget(0);
}
}
수식 완성 부탁드립니다.
항상 고맙습니다.
**********************************************************************************
if MarketPosition== 1 Then
{
if IsEntryName("b1") == true Then
{
SetStopLoss(1,PointStop);
SetStopTrailing(2,0,PointStop);
SetStopProfittarget(3,PointStop);
}
Else if IsEntryName("b2") == true Then
{
SetStopLoss(2,PointStop);
SetStopTrailing(3,0,PointStop);
SetStopProfittarget(4,PointStop);
}
Else
{
SetStopLoss(0);
SetStopTrailing(0,0);
SetStopProfittarget(0);
}
}
2025-06-16
143
글번호 191764
시스템
답변완료
문의드립니다,
수고하십니다.
아래수식을 data2를 macd말고 이동평균선으로 변경부탁드립니다.
input : short1(12),long1(26),sig1(9);
input : short2(12),long2(26),sig2(9);
input : Per(30);
var : MACDO1(0,Data1),MACDO2(0,Data2);
MACDO1 = Data1(MACD_OSC(short1,long1,sig1));
MACDO2 = Data2(MACD_OSC(short2,long2,sig2));
if MarketPosition == 0 and Data2(CrossUp(MACDO2,0)) Then
Buy();
if MarketPosition == 1 Then
{
if data1(CrossDown(MACDO1,0)) Then
ExitLong("bx1",OnClose,Def,"",Ceiling(MaxContracts*(Per/100)/10)*10,2);
if data2(CrossDown(MACDO2,0)) Then
ExitLong("bx2");
}
감사합니다
2025-06-16
134
글번호 191756
시스템