Basic coding question

Forums ProRealTime English forum ProOrder support Basic coding question

  • This topic has 30 replies, 3 voices, and was last updated 6 years ago by avatarBC.
Viewing 15 posts - 1 through 15 (of 31 total)
  • #36635
    BC

    I am stucking  on a basic coding…how to code below?

    Buy 1 contract after Bullcondition appear BullCandleStyle.

    Thanks

    Bin

     

    #36648

    Any good or am I misunderstanding the request or the strategy?

     

     

    #36666
    BC

    Hi Grahal

    Thanks, your suggestion is buy when both condition appear at same time.

    But my idea is: When bullcondition, hold the buy until BullCandle Style appear.

    #36667

    Or something similar … I’ll sleep on it! 🙂

    #36674

    How long you want to hold the condition? Couldn’t be forever as BullCondition may not be valid, so maybe you need below?

    You can optimise variable x

    As your Bull Condition is  …

    why not just use …

    Then you could have …

     

     

     

    #36706
    BC

    Thanks Grahal, actually the bull condition contain 3MA and need confirm by a candle pull back.

    I found this intersting strategy from internet and seem workable, you can take a look via below link.

    http://www.tradingstrategyguides.com/big-three-trading-strategy/

     

    #36708

    Yeah link looks good, easy to read and well laid out website … I’ll digest better with my tea tonight. 🙂 It looks a lot like the Alligator Strategy?

    I felt the simplistic explanation of the Alligator a bit naff when I first studied it, but I’m pleased to say it has stuck with me and I guess that is the reason (naff)! 🙂

    https://www.forextraders.com/forex-education/forex-indicators/alligator-indicator-explained/

    There is an Indicator on here …

    https://www.prorealcode.com/prorealtime-indicators/bill-williams-alligator/

    There is also the PRT Default … see attached.

    GraHal

     

    #36778
    BC

    Hi Grahal

    I am working on big three strategy, however I stuck on the stop loss coding.

    eg: When long, stop loss should be (MA80-tradeprice), but Prorealtime only read previous tradeprice instead of current tradeprice.

    😫😫😫

    #36779

    Didnt use TradePrice(1) did you?

    If you put your code on here (using <> icon) we may be able to spot the reason?

    #36783
    BC

    yes, I try blank, (1) and (0), still not work.

    I am out for some alcohol to relax, will post code later a moment later.

    #36797
    BC

    Hi GraHal

    Here u go.

     

    #36798
    BC

    miss condition

     

     

    #36801

    what instrument / market and timeframe you running this on?

    #36802

    I got it going, see attached. You check it out to see if it’s doing what you want?

    Here are the code differences …

     

    #36815
    BC

    Hi Grahal

    I found below work.

     

Viewing 15 posts - 1 through 15 (of 31 total)

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