Forum

Help for sl

Hi guys, I wanted to test Stop Loss Function, so i use this simple code. But nothing is happening. During the backtest no buy or sell order Can you help me please Thank you for your time #include <Trade\Trade.mqh> CTrade trade; int a = 0 ; void OnTick () { double RsiArray[]; int rsi = iRSI (

Need Help please, nothing is happening

#include <Trade\Trade.mqh> CTrade trade; int a = 0 ; void OnTick () { double RsiArray[]; int rsi = iRSI ( _Symbol , PERIOD_CURRENT , 14 , PRICE_CLOSE ); ArraySetAsSeries (RsiArray, true ); CopyBuffer (rsi, 0 , 0 , 3 , RsiArray); double rsivalue= NormalizeDouble (RsiArray[ 0 ], 2 );