How can I store the first order limit price as a variable to use for calculating...
the rest of the orders for averaging in while a strategy is in play?
For example, the first entry limit price is set for 10 ticks below (or above, depending on whether long or short) the indicator being monitored for the entry signal.
Then, I need to set additional orders based on that first order's original limit price.
However, the variable used to set the original limit price is tracking an indicator that changes. The rest of the orders have to be calculated from the initial limit price that should remain static until the strategy completes.
Now that was written by hand and not tested, and I've not used NT in a long, long time now. But the idea is simply to store the price in a double. In this example I set the price 10 ticks above/below the EMA(20) based on whether or not the EMA(20) was rising or falling.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post: