Hello,
I've been trying to figure out how to set custom trade price for rotational trading. I've set those values in the backtester settings as stated by the Manual
But then i find that it's not working as expected or maybe i misunderstood, please help with that.
Here is my backtesting settings and results, i set buy price to be high and sell price to be low for long trades (to mimic worst performance)
Then when i compare entry price with chart, i found it good.
but for exit price it's also the high price ( not low as i stated in the settings)
What could i possibly miss, here is the code (i used code of a previous post here for testing if the code was the problem)
SetBacktestMode(backtestRotational);
EnableRotationalTrading() ;
SetOption("MaxOpenPositions", 5);
SetOption("WorstRankHeld", 4);
SetPositionSize( 20, spsPercentOfEquity);
SetTradeDelays(1,1,1,1);
PositionScore = 1000 - RSI(2);
AddColumn(PositionScore, "PositionScore");
aThanks in advance,