fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Entry after X consecutive closes above Y SMA - NEED HELP

    Questions & Answers
    2
    2
    399
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      banco last edited by

      Hi every one I am new to this coding business and need some help on something realy simple.

      I want to create an EA with the following conditions.

      Buy on the close of candle after "X" consecutive closes above "Y" SMA.
      Exit trade at close of "Z" candles after entry.

      Sell on the close of candle after "X" consecutive closes under "Y" SMA.
      Exit trade at close of "Z" candles after entry.

      I want to place a stop of "N"ATR

      Want to be able to change parameters for X ,Y ,Z AND N
      How can one limit the time to test say from 8h00 till 16h00
      Want to test it on different time frames as well like 5 min or 15 min etc

      Want to do some research and would appreciate your help.
      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        For the "consecutive closes" I will suggest the block named "Indicator moves within limits". One of the indicators will be where it is defined by default. The other one will be when you select "Dynamic value" for Upper or Lower mode.

        Better test how this works with some "Draw Arrow" block, and then do something else.

        There is a block named "Time filter". Also "Hours filter".

        For input parameters look at "Constants (Inputs)"...

        or look and test some projects from https://fxdreema.com/examples

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        G
        G

        9
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors