Intra day camarilla Pivots not matching chart display

Forums ProRealTime English forum ProBuilder support Intra day camarilla Pivots not matching chart display

Viewing 9 posts - 16 through 24 (of 24 total)
  • #201587
    JS

    If you want to use different time frames, you have to put that above your code:

    TimeFrame(5 minutes)

    // Conditions to enter long positions
    indicator1 = ExponentialAverage[8](close)
    indicator2 = (High[1] + Low[1] + Close[1])/3
    c1 = (indicator1[1] < indicator2[1])
    indicator3 = ExponentialAverage[8](close)
    indicator4 = (High[1] + Low[1] + Close[1])/3
    c2 = (indicator3 > indicator4)

    TimeFrame(15 minutes)

    indicator5 = Close[1] + (High[1]-Low[1]) * (1.1 / 4)
    c3 = (close > indicator5)
    indicator6 = Close[1] + (High[1]-Low[1]) * (1.1 / 6)
    c4 = (low[1] < indicator6[1])
    indicator7 = Close[1] + (High[1]-Low[1]) * (1.1 / 6)
    c5 = (close > indicator7)

    1 user thanked author for this post.
    #201594

    Thanks JS,

    I haven’t made myself clear.

    The code is all based on the 1m chart . So visually, I have two sets of camarilla indicators on my chart (5m & 15m). On this 1m chart I have a set of criteria I want to meet based on 5m cam levels & another set of conditions to meet based on the 15m cam levels.

     

    // Conditions to enter long positions

    //Set of criteria to meet on the 5m cam

    indicator1 = ExponentialAverage[8](close)
    indicator2 = (High[1] + Low[1] + Close[1])/3
    c1 = (indicator1[1] < indicator2[1])
    indicator3 = ExponentialAverage[8](close)
    indicator4 = (High[1] + Low[1] + Close[1])/3
    c2 = (indicator3 > indicator4)

    //Set of criteria to meet on the 15m cam

    indicator5 = Close[1] + (High[1]-Low[1]) * (1.1 / 4)
    c3 = (close > indicator5)
    indicator6 = Close[1] + (High[1]-Low[1]) * (1.1 / 6)
    c4 = (low[1] < indicator6[1])
    indicator7 = Close[1] + (High[1]-Low[1]) * (1.1 / 6)
    c5 = (close > indicator7)

    Thanks for your patience.

    #201595
    JS

    Put your indicators under the correct time frame and put your conditions under time frame “default” (1 minute)

    TimeFrame(15 minutes)

    indicator5 = Close[1] + (High[1]-Low[1]) * (1.1 / 4)

    indicator6 = Close[1] + (High[1]-Low[1]) * (1.1 / 6)

    indicator7 = Close[1] + (High[1]-Low[1]) * (1.1 / 6)

    TimeFrame(5 minutes)

    indicator1 = ExponentialAverage[8](close)

    indicator2 = (High[1] + Low[1] + Close[1])/3

    indicator3 = ExponentialAverage[8](close)

    indicator4 = (High[1] + Low[1] + Close[1])/3

    TimeFrame(Default)

    c1 = (indicator1[1] < indicator2[1])

    c2 = (indicator3 > indicator4)

    c3 = (close > indicator5)

    c4 = (low[1] < indicator6[1])

    c5 = (close > indicator7)

    #201603

    Ill have to take a look at this tomorrow.

    Can you just confirm if they need to appear in the code in the order you have written them?

    Thanks.

    P

    #201605
    JS

    Hi Paulg999

    This must indeed be the order..

    Good luck and we’ll probably talk to each other again… 😉

    #201613

    Hi JS,

    I got a chance to re-enter my code in the right order & re-run it but something is still drastically wrong (with my interpretation no doubt).

    I have attached the itf file along with a summary of the strategy & the code written. Underneath the summary, I have given an example trigger of both short & long along with a PNG file showing each example

    CP = Current Period / PP = Previous Period.

    Long Short
    Using 15m [Camarilla Levels] Using 15m [Camarilla Levels]
    Low < S2 (PP) High > R2 (PP)
    Close > R2 (CP) Close < S2 (CP)
    Using 5m [Camarilla Levels] Using 5m [Camarilla Levels]
    8ema < [Pivot Point] (PP) 8ema > [Pivot Point] (PP)
    8ema > [Pivot Point] (CP) 8ema < [Pivot Point] (CP)
    Close > [R3] (CP) Close < [S3] (CP)
    (Default) (Default)
    Close < BB20-2.3 Upper (Boll2) (CP) Close < BB20-2.3 Lower (Boll2) (CP)
    55ema < 144ema (CP) 55ema > 144ema (CP)
    8ema < 21sma (CP) 8ema > 21sma (CP)
    8ema < 55ema (CP) 8ema > 55ema (CP)
    Close < 55ema (CP) Close > 55ema (CP)
    Close < 21sma (CP) Close > 21sma (CP)
    Exit = Close (CP) < Low (PP) Exit= Close (CP) > High (PP)
    US30 26-09-22 1m @ 17:45 US30 22-09-22 1m @ 20:15

     

    Lets see what this uncovers……..

     

    #201684
    JS

    Hi Paulg999

    I have time to look at your code again over the weekend…

    #201771
    JS

    Hi Paulg999

    I see several double indicators (ind1 = ind2, ind3 = ind5, ind4 = ind6, etc.)

    It’s not wrong but not necessary and somewhat confusing.

    Furthermore, I don’t see any errors in your code…

    What goes “dramatically wrong”?

    #202673

    Hi JS,

    Apologies for the late reply. I am currently in the middle of a house sale which is proving to be very time consuming. I will get back to you in a few weeks when things have calmed down.

Viewing 9 posts - 16 through 24 (of 24 total)

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