![]() Good morning all, with help from members in the group I have been able to replicate the Dyno Trading indicator into TOS script. # Defining Long/Short Filters (these instructions determine entries / exits)ĭef Long_Entry = close > LinReg and close > EMA_LR and body > LinReg and body > EMA_LR and close > high and body > body ĭef Long_Stay_In = close > LinReg and close > EMA_LR ĭef Long_Exit = (close LinReg or close > EMA_LR) or Short_Stay_In = 0 ĭef Short_State = If Short_Entry then 1 else if Short_Exit then 0 else Short_State ĪssignPriceColor(if Long_State then Color.GREEN else if Short_State then Color.RED else Color.Yellow) ĭefineGlobalColor("Bullish", Color.Green) ĪddCloud(EMA_LR, LinReg, GlobalColor("Bearish"), GlobalColor("Bullish")) # LinearRegCh100 RegressionDivergence - Trigger Lines - Trend Crossĭef LinReg = Inertia(price, LinRegLength) ĭef EMA_LR = ExpAverage(LinReg, EMAlength) Green bars = Buy, Red bars = Sell and Yellow bars = Stay out (Neutral). The bars are color coded and this does not repaint. I also combine this with the VWAP and 200 EMA. Please review and let me know what you think. ![]() I saw an article from Lizard Indicators (Link provided in the commented section of the code) and basically recreated their version in TOS and it looks fairly close. ![]() I was able to recreate a close representation of the Dyno Trading Volume indicator (Which I do not believe is based on volume but a Linear Regression crossover). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |