New member here and highly impressed with the knowledge. I’m a long time user of ToS but only starting to gain knowledge of the coding side of things. I’m gaining expertise with indicator settings for custom setups and moving into the strategy and script side. Basically I know most anything you can imagine can be written, just don’t know how to do it yet. I’ve seen “almost” what I’m seeking using the search function, but have found it as an indicator vs a strategy. I’d like to be able to backtest the P/L and thus am looking for a strategy script. I’ve traded manually this way for a while but tend to take profits early. While it works ok I miss larger runs out of conservative tendencies. So the script I’m hoping for exits at the reverse crossover.
Inputs desired-
1. Upon the 9EMA crossing the 28EMA, wait for a pullback to the 9EMA and enter long or short appropriately. Could also wait for a pullback to the longer EMA, but this is my go-to as it provides more trades.
2. Exit is at the crossing of the 9/28 EMA in the opposite direction.
In the photo below-crossing occurs at the green arrow. Entry occurs at the green arrow. Exit occurs off screen when the 9ema crosses below the 28ema.
My goal is to gain knowledge how to manipulate this for a few other settings I trade with. ie- enter at the 28 vs 9, exit settings based on tick move vs ema cross, etc.
.
Thanks for any guidance
Inputs desired-
1. Upon the 9EMA crossing the 28EMA, wait for a pullback to the 9EMA and enter long or short appropriately. Could also wait for a pullback to the longer EMA, but this is my go-to as it provides more trades.
2. Exit is at the crossing of the 9/28 EMA in the opposite direction.
In the photo below-crossing occurs at the green arrow. Entry occurs at the green arrow. Exit occurs off screen when the 9ema crosses below the 28ema.
My goal is to gain knowledge how to manipulate this for a few other settings I trade with. ie- enter at the 28 vs 9, exit settings based on tick move vs ema cross, etc.
.
Thanks for any guidance
Last edited by a moderator: