Dear traders and programmers,
Please help to convert this NinjaScript line into MT4:
if (
( Position.MarketPosition == MarketPosition.Long ) &&
( RSI( Close, RSIPeriod, RSISmooth )[0] < AddOverSold ) &&
( Close[0] < ( Low[0] + ( ( High[0] - Low[0] ) * ( (double) RangePercent / 100 ) ) ) )
)
EnterLong( "AddBuy" ) ;
What it does is it checks if there is an open trade, if so it will add to existing position when RSI is oversold and the bar closes in lower 30% of its entire range.
Please help. What is the MT4 code line should look ?
Kind Regards,
Adilius
Please help to convert this NinjaScript line into MT4:
if (
( Position.MarketPosition == MarketPosition.Long ) &&
( RSI( Close, RSIPeriod, RSISmooth )[0] < AddOverSold ) &&
( Close[0] < ( Low[0] + ( ( High[0] - Low[0] ) * ( (double) RangePercent / 100 ) ) ) )
)
EnterLong( "AddBuy" ) ;
What it does is it checks if there is an open trade, if so it will add to existing position when RSI is oversold and the bar closes in lower 30% of its entire range.
Please help. What is the MT4 code line should look ?
Kind Regards,
Adilius