Jump to content
  • 0
Sign in to follow this  

How can I include "Latent Gain" in AutoTrading Code


If I have a number of long trades in the one chart as a result of using

DEFPARAM CumulateOrders = True ,

How can I calculate the total loss and use this as an exit condition .

StrategeyProfit  calculates the closed trades but I can't find how to calculate the value of the still open trades.

Obviously this can be done as it is displayed on the chart.



Share this post

Link to post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

You are posting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this