답변완료
시그널메이커 소스 변환 부탁드립니다.
시그널메이커 소스인데 변환 부탁드립니다.
Params :
Profit_Target( 200 ), // 익절 ( 단위 : 틱 )
Stop_Loss( 200 ); // 손절 ( 단위 : 틱 )
Var :
Ma_80(0),
Ma_50(0),
TickSize( 0 );
Ma_80 = Ma(C , 80) ;
Ma_50 = Ma(C , 50) ;
TickSize = OneTick * PriceScale; // 호가 단위
If CrossUp( C , Ma_80 ) Then v11 = O ;
If CrossDown( C , Ma_50 ) Then v22 = O ;
If CrossUp( C , v11 + 100 * Ticksize ) Then Buy("B" , DEF , DEF , 2);
If CrossDown( C , v22 - 100 * Ticksize ) Then Sell("S" , DEF , DEF , 2);
If CurrentContracts <> 0 Then
Begin
SetStopProfitTarget( Profit_Target * TickSize * CurrentContracts );
End
Else SetStopProfitTarget(0);
If CurrentContracts <> 0 Then
Begin
SetStopLoss( Stop_Loss * TickSize * CurrentContracts );
End
Else SetStopProfitTarget(0);
2025-02-21
328
글번호 188405
시스템
답변완료
문의
input : myPeriod(14);
input : showCycler(true);
input : lvl(50);
var : src(0),myRSI(0),firstcolor(0),secondcolor(0),thirdcolor(0);
var : cycler(Nan),mycolor(Nan);
src = close;
myRSI = rsi(myPeriod);
firstcolor = white;
secondcolor = orange;
thirdcolor = gray;
PlotBaseLine1(30,"Low",firstcolor);
PlotBaseLine2(70,"High",firstcolor);
PlotBaseLine3(20,"Second Low",secondcolor);
PlotBaseLine4(80,"Second High",secondcolor);
PlotBaseLine5(40,"40 Line",thirdcolor);
PlotBaseLine6(60,"60 Line",thirdcolor);
plot1(myRSI,"RSI",White);
if myRSI >= 70 or myRSI<= 30 Then
plot2(myRSI,"Oversold color");
Else
NoPlot(2);
//cycler
if myRSI > 69 or myRSI< 31 Then
{
if myRSI > 69 Then
cycler = 1; // bullish
else
cycler = 2; // bearish
}
else
{
if (cycler[1] == 1 and myRSI < 39) or (cycler[1] == 2 and myRSI > 61) Then
cycler = 0;
else
cycler = cycler[1];
}
if cycler == 0 Then
mycolor = white;
else
{
if cycler == 1 Then
mycolor = lime;
else
mycolor = red;
}
if showCycler == true Then
plot3(lvl,"Cycler colors",mycolor);
Else
NoPlot(3);
외부변수로 타주기로 나타나도록 부탁드립니다
2025-02-21
451
글번호 188383
지표