Reply

Count Number of TP in one week

1 replies

Estrategias Ganadoras de Trading

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

Visit profile

3 months ago #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

Attachments:
You must be logged in to view attached files.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

3 months ago #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

Viewing 1 replies (of 1 total)