Simple BB Strategy that needs help

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #239015 quote
    druby
    Participant
    New

    Just to make sure where both on the same page…

    If we say the entry bar is A and the prior bar is B and the one before that was C etc.

    The condition is met on bar B which opens entry at ~open of bar A.

    The condition  on bar B, tests the high of bar C with the UPboll of bar B.

    Based on you condition it appears to do the above.

     

    Since you say that the entry was delayed by 2 bars.

    Should you be looking at a condition something like…

    high[1] crosses over Upboll

    This I think would have got you in a bar earlier

    high  crosses over Upboll

    2 bars earlier

     

    Though this doesn’t take into account if price keeps going after cross over!

    Trader Sab thanked this post
    #239016 quote
    Trader Sab
    Participant
    New

    Thank you so much for your suggestion. I am aware that I have somewhere along the line a thinking mistake, as I don’t understand is when the signal bar is A ( high is above UPboll) so the system should open on the next position the short and not wait until bar C.

    I will adjust the code as per your suggestion and let you know what comes of it. Thanks a lot!

    #239018 quote
    Trader Sab
    Participant
    New

    I adjusted the code and I got the same mistake again.

    1st signal candle     – no short had been opened

    2nd signal candle   – a short was opened and closed correctly

    3rd signal candle    – no short was opened

    4th signal candle    – no short was opened

    I know I make somewhere a logical thinking mistake but can’t figure it out

     

    Would the code read close > than UPboll, the first two and 4th signal candles with Highs outside wouldn’t have triggered any short position.

     

    If my code reads:

    IF High [1] > UPboll THEN

    the system opens 2 shorts correctly however the following were not opened

    1st candle     – no short opened

    4th candle    – it opens a short on the signal candle, whereas on the following candle no short was opened.

     

    It drives me mad not being able to figure out the mistake!

    Price-crossing-over-UPboll.png Price-crossing-over-UPboll.png High-greater-than-UPboll.png High-greater-than-UPboll.png
    #239023 quote
    druby
    Participant
    New

    Looking at the If High [1] > UPboll   image and taking it really slow…

     

    The 1st signal candle, doesn’t create a entry, because  where UPboll is on that bar,  the previous high { High[1] } is below that level.

    So no entry made.

     

    The 2nd signal, does create an entry, because where the UPboll is on that bar, the previous high { High[1] } is above  that level.

    Or to put it another way, your on the 2nd signal bar, but you using the high from the 1st signal bar.

    The entry is taken from the open of the next bar.

     

    The 3rd signal candle follows the same procedure  as the 2nd.

     

    the candle between 3rd and 4th follow the same procedure as 2nd and 3rd

     

    the 4th signal candle follows the procedure of the 1st.

     

    the candle after the 4th signal, follow  2nd, 3rd, and the one between 3rd and 4th.

     

    As far as I can tell, it looks correct and I think its how your looking at it.

     

    I get impression your looking at the same bar for both High[1] and UPboll for true signal.

    I could represent it like this  High[1] > UPboll[0], thats what you’ve got, there on different bars..

    You could be looking at High[0] > UPbol[0] which may look like a  true or false, but that would be wrong.

    Hopefully by the time you get to here , you will have cracked it.

    Trader Sab thanked this post
Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.

Simple BB Strategy that needs help


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Trader Sab @trader-sab Participant
Summary

This topic contains 18 replies,
has 5 voices, and was last updated by druby
1 year, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/07/2024
Status: Active
Attachments: 11 files
Logo Logo
Loading...