Automated trading with Pivot Points and Dojis

Forums ProRealTime English forum ProOrder support Automated trading with Pivot Points and Dojis

Viewing 15 posts - 16 through 30 (of 85 total)
  • #70299

    That sounds like a good tactic, I will try this;)

    The T comes from “Tag” and stands for day in german. So basically Piv T and Piv D should be the same.

    1 user thanked author for this post.
    #70301

    Ha, nice one! language barrier again! 🙂

    So next we need to determine if …

    Piv D/T is todays / current day H+L+C/3 and so Piv changes as the day’s price moves on?

    OR or as you have coded in your System

    Pivot = (DHigh(1) + DLow(1) + DClose(1)) / 3 … which is yesterday’s price levels??  

    1 user thanked author for this post.
    #70302

    I wanted to use yesterday’s price levels. This is also how the pivot indicator is calculated, I guess.

    #70310

    I change to code from “set target” to “exitshort” and “low crosses under pivot”. However, this is not exactly as I planned, because now the exit is triggered not immediatly but rather at the open of the new candle.

    So apparently the Pivot lines must be identically with the Pivot lines from the chart since the exit is triggered as you can see in the picture.

    Last but not least there is still the problem with the range. The program does not seem to recognise that condition.

    #70313

    now the exit is triggered not immediatly but rather at the open of the new candle

    I’ve been out for a family meal so coming at with a fresh mind, what happens if you try …

     

    1 user thanked author for this post.
    #70316

    This did not change that much. But I figured out, that the system is better off without any stops at the pivot lines. So right now I let it roll until a candle with higher highs or lower lows develops;)

    Do you have any idea what we can do about the entry within the range of +- 4 points to the pivot lines?

    #70328

    dojisize = 4.2*pipsize

    doji = Range >= ABS(Open[1] – Close[1]) * dojisize

    What Market are you trading on? (good to name the market at top of your code, then easy to find)  Try *pipsize as above?

    Also enter GRAPH  Range >= ABS(Open[1] – Close[1]) * dojisize at the bottom of yuor code and then backtest.

    How many times do you see Range >= ABS(Open[1] – Close[1]) * dojisize during the backtest period??

    #70344

    I’m trading on the DAX. For a period of 100 I see 333 times to range and 9 times a trade was triggered. Does that mean the code is working after all?

    #70346

    Try

    GRAPH (close[1] <= r1+4 and close[1] >= r14) and close<low[1])

    and where that lines up with

    GRAPH Range >= ABS(Open[1] – Close[1]) * dojisize

    then you have all conditions to trigger a SellShort = TRUE. Does that equal 9 times?

    #70348

    When I try “GRAPH (close[1] <= r1+4 and close[1] >= r14) and close<low[1])” I get an error report for some reason:( The programm does not let me do that, why is that?

    #70350

    Try GRAPH bearishr1

     

    1 user thanked author for this post.
    #70357

    This worked. I graphed all Pivot lines and there seems to be an issue with the timeframe. For instance look at the picture. It says, that the doji was developed within the range of the R3 line, but the R3 line is way too far away. What could be the reason for this?

     

    #70374

    It be good if you copy the code you are commenting on as it will save me having to go back (to page 1 of this Thread etc) and guess / search for which bit of code you are commenting on? 🙂

    #70375

    Ok, I aligned the two time frames. I created an indicator with the pivot lines and displayed them into the chart. As you can see they are now equal. But I changed my prefered Pivot point settings. I want the pivot points only to consider a daily time frame from the opening at 9:00 till the closing at 17:30. How can I change the settings within the code so the pivot points only considere this time frame?

    #70377

    Here is the current code with the R1 line as an example.

Viewing 15 posts - 16 through 30 (of 85 total)

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