I created a simple strategy that work fine on real time but when i am trying to run it in back-testing there is a problem :
i have a entry point at the high of the last bar and then set the Setstoploss to the low of the last bar .
the problem is if the bar i am going in was first below the low of the last bar - i will get a entry point - but immideatly the back-testing will show me that it is trigger a stop loss - even that the share was at that price before it hit my entry point trigger .
as similar problem : i am moving the stop loss to entery once i reach the target and then sell 50% of my order size but then when the price hit the profit in the same bar that the entry was the system will trigger the stop loss even that the price was in the stop loss before it h the profit .
i though on using a tick chart as my primary data set and a 5minute bar as a secondary -> but the setstoploss and the setprofittarget are working on the primer data so i wont be able to read the chart correctly :-(.
that could have work only if i can show on the chart in the back testing the second data series ( 5 minu) and hide the tick chart . but i dont think that is an option
As an example i added a snapshot of one case
; entry was on the blue arrow then it hit a profit on the top pink arrow, but then as i moved stop to the entry it immideatly took the stop - but actually it was only on the way up , and the stop was visited before it hit the profit .....
i hope there is someone that can help me .
Comment