Antwort

Count Number of TP in one week

1 Antworten

Estrategias Ganadoras de Trading

Subscriber, bbp_participant, sq-ultimate, customer, community, 12 replies.

Profil besuchen

vor 3 Monaten #285084

I need to program in AW that when the 2 TP a week strategy no longer operates. I understand that I have to make a counter of times we get TP but I don’t really know how to do it…
I have tried what you see in the image but it doesn’t work

Anhänge:
Sie müssen sein eingeloggt um angehängte Dateien anzuzeigen.

0

tomas262

Administrator, sq-ultimate, 2 Antworten.

Profil besuchen

vor 3 Monaten #285105

You want to detect a positive “Closed PnL” result. The condition to make this work will be like:

If Position = Flat and Closed PnL > 0 and LastTradeCounted = 0

Actions:

  1. AssignVariable1 (counter = counter + 1)
  2. AssignVariable2 (LastTradeCounted = 1)

On trade entry you want to assign LastTradeCounted with value 0 again (action -> assign var)

 

0

Ansicht von 1 Antwort (von insgesamt 1)