Page 1 of 2 12 LastLast
Results 1 to 10 of 14
 5 Attachment(s)    

Thread: Strange Pyramid EA

  1. #1

    Default Strange Pyramid EA

    Hi Funyoo!

    We know Martingale is dangerous, we know pyramiding is dangerous, but, could you help me with this one?(EA):


    -Upper level and Lower level have the same distance from entry price
    -If price is greater than LWMA(20) enter long
    -If price is less than LWMA(20) enter short

    -If long, and "Upper level" is met, close it, and open immediately a new position (same type of previous one)
    -If short, and "Lower level" is met, close it, and open immediately a new position (same type of previous one)

    -If long, and "Lower level" is reached, open new contrarian position (increase previous lots "x" times) do not close the previous one, define the new upper and lower level for the new position, if price meets new position upper level, close all positions when overall profit is "x" pips (and start over), if price reaches new position Lower level, open a new contrarian position with same last lots and define new upper and lower level - loop it until profit.

    -Do the inverse if short



    Hope you understand it.

    Regards,

    LV
    Last edited by Lordvader; 10-24-2009 at 13:07.

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

    Default

    Quote Originally Posted by Lordvader View Post
    Hi Funyoo!

    We know Martingale is dangerous, we know pyramiding is dangerous, but, could you help me with this one?(EA):


    -Upper level and Lower level have the same distance from entry price
    -If price is greater than LWMA(20) enter long
    -If price is less than LWMA(20) enter short

    -If long, and "Upper level" is met, close it, and open immediately a new position (same type of previous one)
    -If short, and "Lower level" is met, close it, and open immediately a new position (same type of previous one)

    -If long, and "Lower level" is reached, open new contrarian position (increase previous lots "x" times) do not close the previous one, define the new upper and lower level for the new position, if price meets new position upper level, close all positions when overall profit is "x" pips (and start over), if price reaches new position Lower level, open a new contrarian position with same last lots and define new upper and lower level - loop it until profit.

    -Do the inverse if short



    Hope you understand it.

    Regards,

    LV
    Hi Lordvader,

    Nice strategy. Here is the code.
    Attached Files Attached Files

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

    Default

    I have added a samependinglot option that set the same lots size for the pending orders (lots*2).
    Attached Files Attached Files

  4. #4

    Default

    Backtests great.
    Placed it on a demo this morning -EURUSD 1 hour timeframe grid at only 5 and it killed a 3k account in one hour. 0.1 lots only

    Needs work
    Last edited by Pheniox; 10-26-2009 at 20:58.

  5. #5

    Default

    Quote Originally Posted by funyoo View Post
    I have added a samependinglot option that set the same lots size for the pending orders (lots*2).

    Hi Funyoo!

    Could you please add the following feature?

    -When beginning a new series, long or short, instead taking the signal after price crosses MA, take only the signal if "X" seconds before the close, the price is above or below MA.

    Regards,

    LV

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

    Default

    Quote Originally Posted by Lordvader View Post
    Hi Funyoo!

    Could you please add the following feature?

    -When beginning a new series, long or short, instead taking the signal after price crosses MA, take only the signal if "X" seconds before the close, the price is above or below MA.

    Regards,

    LV
    Hi Lordvader,

    Here is the new version.
    Attached Files Attached Files

  7. #7

    Default

    Quote Originally Posted by funyoo View Post
    Hi Lordvader,

    Here is the new version.

    Hi Funyoo,

    Forgot to add another option:

    -If we are long in the beginning of another "cycle", and the preset distance was broken against us, add a short position instead of another long one. After that, we are looking for profit and we only enter again if price brakes the first entry price.

    Do the inverse for short positions.


    Regards,

    LV
    Last edited by Lordvader; 10-27-2009 at 14:05.

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

    Default

    Quote Originally Posted by Lordvader View Post
    Hi Funyoo,

    Forgot to add another option:

    -If we are long in the beginning of another "cycle", and the preset distance was broken against us, add a short position instead of another long one. After that, we are looking for profit and we only enter again if price brakes the first entry price.

    Do the inverse for short positions.


    Regards,

    LV
    Hi Lordvader,

    Here is the new version.
    Attached Files Attached Files

  9. #9

    Default

    Quote Originally Posted by funyoo View Post
    Hi Lordvader,

    Here is the new version.

    Hi Funyoo,

    I've selected "lots" 0.05 and it's trading 0.5
    When I was talking about "looking for profit" I was meaning: close (with x profit), all open positions (long and short ones).
    Please add this other feature: buy when price is crossing up MA and, MA is going up for "x" periods ago; sell when price is crossing down MA and, MA is going down for "x" periods ago.

    Regards,

    LV
    Last edited by Lordvader; 10-27-2009 at 17:36.

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

    Default

    Quote Originally Posted by Lordvader View Post
    Hi Funyoo,

    I've selected "lots" 0.05 and it's trading 0.5
    When I was talking about "looking for profit" I was meaning: close (with x profit), all open positions (long and short ones).
    Please add this other feature: buy when price is crossing up MA and, MA is going up for "x" periods ago; sell when price is crossing down MA and, MA is going down for "x" periods ago.

    Regards,

    LV
    Hi Lordvader,

    Maybe you have enabled the lotsoptimized or set minlot on 0.5 ?

    lwmapricecross and useminxperiods options added.
    Attached Files Attached Files

Similar Threads

  1. Pyramid Robot Forex
    By fxtester in forum Commercial expert advisors
    Replies: 5
    Last Post: 06-30-2014, 11:09
  2. Gann's pyramid table
    By tribuforex in forum Technical analysis
    Replies: 149
    Last Post: 05-25-2011, 08:32
  3. Martingale Pyramid EA
    By Lordvader in forum Ideas for expert advisors
    Replies: 15
    Last Post: 11-15-2009, 18:25
  4. Something strange
    By przem81621 in forum MQL programming
    Replies: 6
    Last Post: 03-16-2009, 16:57

Tags for this Thread

demo, eurusd, funyoo, grid, level, martingale, pips, profit, request, signal, stop, strategy, trading

Posting Permissions

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