Results 1 to 10 of 10
 6 Attachment(s)    

Thread: Square Breakout

  1. #1

    Default Square Breakout

    Hi Funyoo!

    I'm trying to develop this new trading system, without the use of any indicator. I've called it Square Breakout. I would appreciate you precious help:


    We could use every currency and, the number of pips used to compose the square should be choosen manually.


    Rules:

    If we are using for example, EUR/USD on M15 TF, and we decide to use 25 pips - this is what it happens:

    Define the center of the square on the last bar close - Draw a square with upper and lower border of 25 pips from the center.
    The left and right side of the square should have the same distance from the center as the upper and lower sides.
    But the square should engulf horizontally, "n" entire bars.

    After we fix the square at the last close, we inspect if at any time there is any close bar outside the upper, lower side,
    if any close crosses the upper side we enter long on next bar open (or close - configured manually), if crosses the lower side we enter short, if there is
    no crosses, we displace the square to that last closed bar within the square, and so on.

    After we enter the trade and if there isn't upper or lower crosses, we displace the center of the square to the last engulfed bar price open, within the square.

    Our TP is the closing price (or next open) of the bar that crosses the upper or lower side (if we are long or short)
    Our SL is the closing price (or next open) of the bar that crosses the upper or lower side (if we are short or long)
    Meaning, we do not have either predefined TP or SL - the upper and/or lower crosses (close) will tell us that when needed.

    If we are stopped due to TP or SL, we'll center the square in the next bar open or close (configured manually)


    etc, etc, ...


    PS: Could you answer to my Strange Pyramid latest request?


    Friendly Regards;


    LV
    Last edited by Lordvader; 11-01-2009 at 18:23.

  2. #2
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Hi Lordvader,

    Here is an EA.
    Attached Files Attached Files

  3. #3

    Default

    Quote Originally Posted by funyoo View Post
    Hi Lordvader,

    Here is an EA.

    Hi Funyoo!

    Thank you very much for your help.

    I only need a slight modification that I didn't explained well: when we fix the square on the last bar (the square only moves to the next position when we have a breakout!) , that bar is the center of the square, meaning: we should have 12 bars behind it and 12 bars after it.

    After that, the EA will enter long, short or changes position if, within the next 12 bars (after the central bar) we have a breakout in upper, lower or right side.

    1-If closing price breaks the upper side, we enter long and the center of the square will be displaced to the opening bar after the one that played the breakout.
    After that, if the price breaks up (closing), it'll be our TP, if breaks down, it'll be our SL, if breaks on the right side, we displace the square again and wait for another upper, lower or right breakout

    2-If closing price breaks the lower side, we enter short and the center of the square will be displaced to the opening bar after the one that played the breakout.
    Same as 1 (inverse)

    3-If the closing price doesn't break either upper or lower side, but the right one, we displace the center of the square to the opening bar after the one that played the breakout (right side). And we wait for one breakout within the next 12 bars.
    Same as 1

    4-Loop...


    Best Regards,

    LV
    Last edited by Lordvader; 11-04-2009 at 10:49.

  4. #4
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Hi Lordvader,

    Ok here is a new version.
    Attached Files Attached Files

  5. #5

    Default

    Quote Originally Posted by funyoo View Post
    Hi Lordvader,

    Ok here is a new version.

    Hi Funyoo!

    It's almost perfect!
    -If we have a Upper or lower breakout before the end of the next 12 bars, we displace the square also.
    -When we displace the square to his new position, it must be centered horizontally (12 bars before/12 bars after) and vertically (x pips above center/x pips below center).
    Could you add a red square for the 12 future bars and remove the buy stop and sell stop signals, so I could control visually the EA operations?

    Best Regards,

    LV
    Last edited by Lordvader; 11-04-2009 at 16:58.

  6. #6
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by Lordvader View Post
    Hi Funyoo!

    It's almost perfect!
    -If we have a Upper or lower breakout before the end of the next 12 bars, we displace the square also.
    -When we displace the square to his new position, it must be centered horizontally (12 bars before/12 bars after) and vertically (x pips above center/x pips below center).
    Could you add a red square for the 12 future bars and remove the buy stop and sell stop signals, so I could control visually the EA operations?

    Best Regards,

    LV
    Hi Lordvader,

    Ok, pending orders replaced with instant orders.

    Concerning the square, I don't know how to draw the future part (nbars behind). According to my knowledge, that's not possible. But the virtual square takes it into consideration to redefine the center if there is no cross during the "nbars" next bars.
    Attached Files Attached Files

  7. #7

    Default

    Quote Originally Posted by funyoo View Post
    Hi Lordvader,

    Ok, pending orders replaced with instant orders.

    Concerning the square, I don't know how to draw the future part (nbars behind). According to my knowledge, that's not possible. But the virtual square takes it into consideration to redefine the center if there is no cross during the "nbars" next bars.

    Hi Funyoo!

    Could you just add this option: after being stopped by TP or SL and after the displaced square, enter long or short, ONLY when we have another upper or lower breakout - it could make a great difference.

    Friendly Regards,

    LV

  8. #8
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by Lordvader View Post
    Hi Funyoo!

    Could you just add this option: after being stopped by TP or SL and after the displaced square, enter long or short, ONLY when we have another upper or lower breakout - it could make a great difference.

    Friendly Regards,

    LV
    Hi Lordvader,

    Here is a new version.
    Attached Files Attached Files

  9. #9

    Default

    Quote Originally Posted by funyoo View Post
    Hi Lordvader,

    Here is a new version.
    Hi Funyoo,

    I'm continuing to "work" on this one.

    And I've detected that sometimes the EA doesn't displace the square as it should be, could you correct this issue please?

    Please note again, the square should be displaced immediatelly due to TP or SL and we ONLY enter a new position after we have a new breakout.

    Could you add another feature: If stop loss is reached, new position is a "n" factor lot size of last one?


    Regards,

    LV
    Attached Images Attached Images Square Breakout-square-jpg 
    Last edited by Lordvader; 11-16-2009 at 01:27.

  10. #10
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by Lordvader View Post
    Hi Funyoo,

    I'm continuing to "work" on this one.

    And I've detected that sometimes the EA doesn't displace the square as it should be, could you correct this issue please?

    Please note again, the square should be displaced immediatelly due to TP or SL and we ONLY enter a new position after we have a new breakout.

    Could you add another feature: If stop loss is reached, new position is a "n" factor lot size of last one?


    Regards,

    LV
    Hi Lordvader,

    Here is a new version.
    Attached Files Attached Files

Similar Threads

  1. 1-2-3 ZZ Breakout EA
    By scalpmaster in forum Ideas for expert advisors
    Replies: 2
    Last Post: 06-08-2017, 09:11
  2. Replies: 0
    Last Post: 01-30-2013, 08:49
  3. a different breakout ea
    By mili hal in forum Expert advisors backtesting
    Replies: 3
    Last Post: 11-01-2010, 23:32
  4. Breakout BSL EA v2
    By funyoo in forum Expert advisors backtesting
    Replies: 7
    Last Post: 07-22-2010, 05:30

Tags for this Thread

breakout, closing, eur, eur/usd, funyoo, how to, indicator, pips, request, signals, stop, system, time, trading, trading system, usd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •