TMMS oscillator in a automatic trading
- This topic has 5 replies, 3 voices, and was last updated 4 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:
Forums › ProRealTime English forum › ProOrder support › TMMS oscillator in a automatic trading
Hello everyone, everything good,
TMMS oscillator (Trading Made More Simpler)
https://www.prorealcode.com/prorealtime-indicators/tmms-oscillator-trading-made-more-simpler/
I really liked this indicator and would like to use it in an automated trading strategy.
For example, buy green bars to gray bars …
Can you help me do this?
Thanks
Welcome to the forums.
It is always a good idea to search the library first before requesting an indicator.
https://www.prorealcode.com/prorealtime-indicators/tmms-oscillator-trading-made-more-simpler/
Sorry Dollarbunker – I scan read your first post and as it was in the ProBuilder forum I assumed it was a request for an indicator conversion. I will move the topic to the correct ProOrder forum where strategies are discussed. Please try to post in the correct forum with future topics to save on any confusion! 🙂
Here is the strategy, buy when histogram is green, sellshort when histogram is red. Exit on trend change or if green/red disappear. No orders accumulation.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
defparam cumulateorders=false //PRC_smTMMS-Oscillator_v3.0 | strategy //13.09.2019 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge // --- settings RSIPeriod=14 Stochastic1PeriodK = 8 Stochastic1PeriodD = 3 Stochastic2PeriodK = 14 Stochastic2PeriodD = 3 // --- end of settings once threshold=50 once ilimit=0 bufRSI=rsi[RSIPeriod] bufStoch1=stochastic[Stochastic1PeriodK,Stochastic1PeriodD] bufStoch2=stochastic[Stochastic2PeriodK,Stochastic2PeriodD] bufRSI=bufRSI-threshold bufStoch1=bufStoch1-threshold bufStoch2=bufStoch2-threshold bufHistUP=0 bufHistDN=0 //bufHistNO=0 if(bufRSI>ilimit and bufStoch1>ilimit and bufStoch2>ilimit) then bufHistUP=bufStoch2 else if(bufRSI<ilimit and bufStoch1<ilimit and bufStoch2<ilimit) then bufHistDN=bufStoch2 else //bufHistNO=bufStoch2 endif endif //bullish order if bufhistup>0 and bufhistup[1]=0 and not longonmarket then buy at market endif //bearish order if bufhistdn<0 and bufhistdn[1]=0 and not shortonmarket then sellshort at market endif //orders exit when histogram is gray if bufhistup=0 and longonmarket then sell at market endif if bufhistdn=0 and shortonmarket then exitshort at market endif |
Thanks Nicolas
Always quite available.
Find exclusive trading pro-tools on