♥ 0 |
Aloha Pete, First thank you. I have learned a great deal about scripting from you. I’m trying to figure out a way to implement labels for past performance of the floatingpl() and addorder() functions. I have done extensive backtesting for some of my strategies but would like to see a snapshot of how my strategy is performing recently. For example, if i pull up a 30 day 1 min chart of SPY, I could quickly see a few stats in labels based off the previous addorder executions like accuracy%, max loser, max winner, etc. This way it could give me a quick view of how my strategy is performing in the current market conditions in a particular stock. In which case could lead me to size up, size down, no trade, etc.
Marked as spam
|
Please log in to post questions.
Thank you Pete very much. I apologize I’m not too good at navigating through forums. I was also having another issue i can’t seem to resolve. I’m running a macd with an aggregation of 5mins on a 1min chart and my addorder will trigger 5 consective signals on the macdcrossover until the aggregation period is over and confirmed. I tried comparing the value and avg of 5 bars ago and many other ideas with no luck. My goal is to get one signal once the macd cross has confirmed on the 5 min timeframe.
MTF Strategies are far beyond the scope of what we cover for no charge in the Q&A forum. Since you seem to have a good grasp of writing your own, I suggest you examine the code we provide with the following video: https://www.hahn-tech.com/thinkorswim-strategy-guide-mtf/
Be sure to watch the entire video carefully. When using MTF in a strategy there are some major pitfalls you will want to avoid.