Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy builder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy builder

    Good afternoon, can someone help me with the strategy builder?
    I want to know how I can configure it to open a long position when the price touches a moving average (SMA 52 period)​ not when the bar closes, but just touches the moving average. I use Tick Chart 610. Thank You.

    #2
    Just initiate a new Strategy with Strategy Builder and set calculate:on each tick.
    Then in a Set, in the Conditions panel, press add and chose from the left: price (close) / from the center: "equals" and / from the right: Indicators/SMA with period 52
    In the Actions panel, press add and chose to enter Long

    Note that in this case, price(close) doesn't represent the bar close, it's updated on each tick, so it's always the current price.
    Last edited by KonstantinosNT; 01-18-2023, 04:11 AM.

    Comment


      #3
      Thanks for answering, but the long does not open when the price touches the moving average.

      The strategy I would like to configure would be:
      open long:
      sma 20 > sma 80
      Price touch EMA 52period or SMA 52

      What I can't do is open the trade when the price touches the moving average, it only does when the 610 tick bar closes right on the indicator or when it closes below the indicator (using cross below)

      I really appreciate your help I have tried for months.



      Attached Files

      Comment


        #4
        Hi guszan.

        Change the "equals" with "cross above" in the 2nd Condition.
        That will make long trades to be opened normally.

        The problem is that the price never "touches" the sma in an absolut, mathematical sense.
        What we really see in a chart is in fact, always a cross over , and we translate it verbally into "touch", but that's not mathematically accurate.
        The sma value is a double precision number (which has many decimal points) and it will almost never equals to the price, which follows specific / distinct value levels according to points and ticks.​
        Last edited by KonstantinosNT; 01-19-2023, 01:34 AM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by pibrew, Today, 06:37 AM
        0 responses
        1 view
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        12 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        11 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        15 views
        0 likes
        Last Post AaronKoRn  
        Working...
        X