Forums ProRealTime English forum ProOrder support Trend surfer DAX modified Reply To: Trend surfer DAX modified

#68432

So ! I rewrote the code to make the conditions work and each one is tested in an indicator (see attached).

signal_squeeze1 :

  • negative surface for down supertrend and positive surface for up supertrend
  • red spikes for short signals and green spikes for long signals

signal_squeeze2 :

  • red spikes for short signals AND down supertrend
  • green spikes for long signals  AND up supertrend

 

signal_squeeze2 is used by the system to enter a position, and supertrend to exit (plus money management). But it’s not the case as you can see.

Soooooooo, now that I narrowed down the problem, i’m deducing that the only part of the code which could be the problem is the part below, where the system buys and sells, Elementary my dear Watson !

 

I finally found the problem and I’m really having fun doing this, but now i’m stuck, and this has been already for a few hours, could someone help please ?

chears !

PS : the entire code is also attached if needed