- To create custom trading buttons that will for example buy at the high of the last bar.
- To leverage ATM, or create my own Stop/Targets based on ATR or MA levels.
The comments in the Indicator example say that it is using the Add-On approach.
Question 1:
What in the code makes it an Add-On and not an indicator? Or what code is the "Add On Approach"?
For topic 2 above where I want to use my own stop and targets, how do I detect that an order was filled? For example, when I do right click on the chart and place a limit order. Normally when it is filled, the ATM will take over.
Question 2:
To detect that an order was filled, do I use the ExecutionUpdate and/or OrderUpdate methods under the Account Class in Add-ons? Account Class
What about the OnExecutionUpdate and OnOrderUpdates under Strategies. Do those work ONLY in Strategies?
Now with regard to my custom stop and targets, I have been looking into two options.
- To update the stop and targets in the ATM strategy
- Create and manage my own stops and targets
Question 3:
To leverage ATM strategy approach and use my own stop and targets, would using the AtmStrategyChangeStopTarget from ATM_Strategies be the way to do it? Or is this also only available in a Strategy?
Question 4:
To create my own, is the best place to put those in OnExecutionUpdate or OnOrderUpdates?
Then it look like there are also different flavors of ExecutionUpdate and OrderUpdates depending on if this is an Add-on, Indicator, or strategy.
Question 5:
Is this correct and are there some guidelines which would help me decide if I should use an Add-on, Indicator or Strategy?
Question 6:
Lastly which is probably making me sound quite dumb, but if I create an Add-On, how to I add it to the chart? I only see an option for Indicator and Strategy. I guess this ties into my first question above, what code in that Indicator example, makes it an Add-on?
Comment