![]() |
Strategy Catch Up
ok trading strategy is written and runs on charts etc. when first invoked it is usually in the middle of a trade. how can i catch up? should i use the system.io to check for a file named instrument.fullname and trigger the trade by the strategy that way? it works.
thanks for any help |
|
if the strategy opens long 1 and then uses the exitlong function and not a sell order would the account and strategy both be flat at that point? or would the account be short 1? Thanks Ray
|
We cannot say for certain if your account position will be flat, but your strategy position will.
If you had a long position in your account before you started your strategy your account will still be long after your strategy has done ExitLong() because of the prior long position. |
assuming the account is flat. the strategy opens long 1 then exits long. account still flat right? then next trade triggered by the strategy i.e. long 1 will be in sync with account. yes?
|
Correct. Assuming you start a strategy when it is in sync with your account position they will remain synced.
|
| All times are GMT -6. The time now is 07:38 AM. |