I would like to know how to stop or exist the trade as soon as I reach the daily goal of loss or profit.
It seems that the last trade either closing at higher loss or profit and due to this many times my strategy is turning profit into loss.
For example. I have a set daily profit to 300 and when last trade that has turned passed 300$ it is not being stopped as the it is working to reach the trade profit or loss parameter let's says 100$.
And then is market turns on opposite site and it takes a stop loss and PNL goes below $300 lets say $200. So how do I stop tthhat last trade as soon as it reached $300 in the first place.
In my testing, I am seeing either daily profit of over $300 with some random number or loss or more than -300. Please see the screen below where net profit column has no exact 300$ value that I would like to see for either profit or loss.
What statement to use so that at each trade it checks the realized profit or loss is at $300 in this case and stop the strategy from taking any more trades.?
Thank you.

Comment