NAS 2m HULL-SAR trading system
Forums › ProRealTime English forum › ProOrder support › NAS 2m HULL-SAR trading system
- This topic has 343 replies, 42 voices, and was last updated 1 year ago by bege.
-
-
05/15/2021 at 1:45 PM #169751
Try commenting out lines 150-151, then adding these lines at line 154:
-Does this mean that I should make this change also in a v5.3 that I am running?
-Also change on the short side if running that?
-Does it affect results in backtest or is it only in live trading it makes a difference?
05/15/2021 at 2:08 PM #169752I don’t know that code!
I just read it because of the question.
The short side is not affected by those changes.
It simply adds the stop loss when it was missing, be it live or backtest.
05/15/2021 at 2:19 PM #169753I’ve had this problem too, sometimes the stops and targets don’t register. Sometimes the trail doesn’t kick in when it should. I honestly don’t know why this is because it’s code that’s tried and tested on many other algos.
For the stops, you could also try:
123456789If LongOnMarket thenSET STOP %LOSS slSET TARGET %PROFIT tpEndifIf ShortOnMarket thenSET STOP %LOSS slsSET TARGET %PROFIT tpsEndifand delete all other stop and target code.
05/15/2021 at 3:01 PM #169754This will set the SL when already on market, while abraxas‘s question was why the SL was missing on entry, the very first candle.
05/15/2021 at 3:10 PM #169755The short side is not affected by those changes.
I meant if I should make the same changes for row 166 & 167 if using tradetype = 3 (short)?
..or use what nonetheless just posted?
05/15/2021 at 3:10 PM #169756Yes, I realise, but at least it should be there from the second candle, no? which is only 2 minutes
And if he wants different SL values for long and short then I can’t see how else to do it.
05/15/2021 at 4:28 PM #169759The modifications I suggested don’t affect short trades.
05/20/2021 at 12:12 PM #17003505/20/2021 at 12:43 PM #170039It looks strange. Which settings?
05/20/2021 at 12:43 PM #17004005/20/2021 at 12:47 PM #17004205/20/2021 at 12:48 PM #17004305/20/2021 at 12:50 PM #170044God, new problem. I have an error after 1 hour running who say error calculation in the last candle. And the 2 modes stop : with and without optimisation
Same problem here
05/20/2021 at 12:51 PM #170045Its the one in the attachment list i did not change anything
05/20/2021 at 2:28 PM #170053Dow-2m-HULL-SAR-v5.3-Sh.itf
Did anyone got this one working: Dow-2m-HULL-SAR-V5…?
-
AuthorPosts
Find exclusive trading pro-tools on