Forum

Trailing STOP loss code

for trailing stop loss, i am running below code but getting modified error and update SL to 0.0001 always. Can someone please advice who to get this fixed. void OnTick (){ if ( PositionsTotal ()> 0 ) { //Print(__FUNCTION__," > Pos #",PositionsTotal()," was modified.."); TrailSL();

MA on RSI in mql5 Code

Can someone advice or guide to build MA on RSI in mql5 Code. I cnt find relevant function to be used to build this. Thank you