Ichimoku + stochastic strategy, help needed

Forums ProRealTime English forum ProBuilder support Ichimoku + stochastic strategy, help needed

Viewing 8 posts - 1 through 8 (of 8 total)
  • #131982

    Hi,

    Im trying to build an tradebot and I´m trying to learn.

    This is what I´m working with:

    I know its not working and I would need some guidelines from you guys here how to keep going on. Much thanks!

    ,,Franro

    #131988

    Stick to highlighted basic rules, among which:

    Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.

    it doesn’t work because it’s not written in ProRealTime language, at least the last two lines (provided the first ones have been correctly converted).

    Maybe someone knowing that language might help.

    #131992

    Plus you have a DEFPARAM in the middle of the code and it should always be at the beginning and you have a RETURN in the middle of the code when it should always be at the end.

    You say you are building a ‘tradebot’ but this is an indicator that you are working on and not an auto strategy.

    #132759

     

    #132760

    Thanks for the help guys. I hope I´m learing in the right direction.

    Can someone help me set up the short condition:

    // short
    stochSellSignal = stochFast > stochSellSignalInput and crossunder(stochFast, stochSlow)
    rsiSignal = change(rsi) < 0
    ichiSellSignal = chikou < sourceInput[chikouDisplacement1]
    sellSignal = stochSellSignal and rsiSignal and ichiSellSignal
    This easily means short when
    stochasticfast  > 80 and cross under (stochFast, stochSlow)
    rsi is moving down
    close is less than chikou (lagging span)
    And all of them together to short.

     

     

    #132764

    As it is coded it will work on v11, since it has Ichimoku keywords that are missing in v10.3 (but can be easily replaced).

    Now you only need to write the code to enter and exit trades.

     

    1 user thanked author for this post.
    #132788

    Oh I have v10.3 this is the condition for enter short trade

    // short
    stochSellSignal = stochFast > stochSellSignalInput and crossunder(stochFast, stochSlow)
    rsiSignal = change(rsi< 0
    ichiSellSignal = chikou < sourceInput[chikouDisplacement1]
    sellSignal = stochSellSignal and rsiSignal and ichiSellSignal
    This easily means short when
    stochasticfast  > 80 and cross under (stochFast, stochSlow)
    rsi is moving down
    close is less than chikou (lagging span)
    Im just unsure how to write them in prt and I would like some help with that from someone here at the forum 😀
    #132939

    There you go. I commented unused Ichimoku definitions and added TP & SL to make it work for testing purposes:

     

Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login