TMMS oscillator in a automatic trading

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #110238 quote
    Dollarbunker
    Participant
    Junior

    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

    #110241 quote
    Vonasi
    Moderator
    Master

    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)

    #110251 quote
    Dollarbunker
    Participant
    Junior

    Thanks.

     

    The idea is use this indicator in a automatic trading system.

     

    Nicolas • 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.”

    #110254 quote
    Vonasi
    Moderator
    Master

    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! 🙂

    #110255 quote
    Nicolas
    Keymaster
    Master

    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 
    
    
    
    
    #110260 quote
    Dollarbunker
    Participant
    Junior

    Thanks Nicolas

    Always quite available.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

TMMS oscillator in a automatic trading


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by Dollarbunker
6 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/15/2019
Status: Active
Attachments: No files
Logo Logo
Loading...