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 casabella, Today, 04:12 AM
        0 responses
        10 views
        0 likes
        Last Post casabella  
        Started by Ludwik, Today, 03:52 AM
        0 responses
        7 views
        0 likes
        Last Post Ludwik
        by Ludwik
         
        Started by wuannetraam, Today, 02:40 AM
        0 responses
        10 views
        0 likes
        Last Post wuannetraam  
        Started by cyberpete76, 03-27-2023, 12:29 AM
        7 responses
        272 views
        1 like
        Last Post slightly  
        Started by renewsaltwater, Today, 01:15 AM
        0 responses
        4 views
        0 likes
        Last Post renewsaltwater  
        Working...
        X