Results 1 to 8 of 8
 4 Attachment(s)    

Thread: Lsma Ea

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    11

    Default Lsma Ea

    Funnyoo or other,

    Still learning coding but wondering if you could assist in developing this EA. It uses the least squares moving average (LSMA in Colour) indicator.

    Basically, buy when a change in colour has been confirmed for 1 bar/candle. Looking to have a hidden SL (I use an ECN broker) and lock-in profit at 2 x ATR (trailing stop) or a confirmed change in colour (as above), whichever comes first.

    I've attached an image for what I imagine. I think it works best on 1H TF on trending pairs, i.e. AUDJPY, AUDUSD, but open to ideas.

    Thanks, much appreciated for the time and effort put in by you and others on this forum.
    Attached Images Attached Images Lsma Ea-audjpy-h1-lsma-arrow-gif 
    Attached Files Attached Files

  2. #2

    Default

    Looks interesting. I really hope it doesnt repaint...

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    11

    Default

    Quote Originally Posted by Agentrfr View Post
    Looks interesting. I really hope it doesnt repaint...
    Hi Agenrfr,

    LSMA can repaint, that's why I'm asking for a "confirmation" of at least one candle/bar before making a trade or closing an existing trade.

    Regards.

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

    Default

    Quote Originally Posted by gm2407 View Post
    Funnyoo or other,

    Still learning coding but wondering if you could assist in developing this EA. It uses the least squares moving average (LSMA in Colour) indicator.

    Basically, buy when a change in colour has been confirmed for 1 bar/candle. Looking to have a hidden SL (I use an ECN broker) and lock-in profit at 2 x ATR (trailing stop) or a confirmed change in colour (as above), whichever comes first.

    I've attached an image for what I imagine. I think it works best on 1H TF on trending pairs, i.e. AUDJPY, AUDUSD, but open to ideas.

    Thanks, much appreciated for the time and effort put in by you and others on this forum.
    Hi gm2407,

    Here is an EA.
    Attached Files Attached Files

  5. #5
    Junior Member
    Join Date
    Nov 2009
    Posts
    11

    Default

    Quote Originally Posted by funyoo View Post
    Hi gm2407,

    Here is an EA.
    Thanks Funnyoo, much appreciated. For those reading this thread, tried this EA on my live account on a few different pairs and TFs.

    Overall came out with a few pips, which is always better than a loss, but that was only on AUDJPY 1H.

    The 15min TF has some good swings and prospective "scalping" potential.

    On the shorter TFs, I'd recommend reducing the ATR factor on the trailing stop to 1 x.

    Cheers.

  6. #6
    Junior Member
    Join Date
    Nov 2009
    Posts
    11

    Default

    Quote Originally Posted by funyoo View Post
    Hi gm2407,

    Here is an EA.
    Funnyoo,

    When you have time, can you please modify this EA so that it only closes the current trade when a change in LSMA colour has occured, and then opens a trade in the opposite direction?

    Just want to try it without any trailing stops.

    Thanks.

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

    Default

    Quote Originally Posted by gm2407 View Post
    Funnyoo,

    When you have time, can you please modify this EA so that it only closes the current trade when a change in LSMA colour has occured, and then opens a trade in the opposite direction?

    Just want to try it without any trailing stops.

    Thanks.
    Hi gm2407,

    Exitoncolorchange option added.
    Attached Files Attached Files

  8. #8
    Junior Member
    Join Date
    Apr 2015
    Posts
    1

    Default

    Hello,

    Can someone tell me who coded this LSMA in color EA v1.01.

    Thank you

Similar Threads

  1. Help with LSMA in color
    By dez_141 in forum MQL programming
    Replies: 1
    Last Post: 11-09-2010, 12:37
  2. LSMA EA request?
    By jimmynz in forum Ideas for expert advisors
    Replies: 3
    Last Post: 02-10-2010, 00:31
  3. Lsma
    By jpsaltuc in forum Ideas for expert advisors
    Replies: 0
    Last Post: 04-11-2009, 16:56

Tags for this Thread

atr, average, broker, candle, change, closing, coding, ecn, indicator, live, live account, moving average, pairs, profit, repaint, scalping, stop, time, trailing

Posting Permissions

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