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.
TMMS oscillator (Trading Made More Simpler)
Thanks.
The idea is use this indicator in a automatic trading system.
• 29 days ago #
Please open a topic in the automatic trading forum for that and bring sufficient explanation on how it should behaves (entries, exit, ..). Thanks in advance.”
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.
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