fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. teobusetti
    3. Topics
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 17
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by teobusetti

    • T

      EA for SMA crossing
      Questions & Answers • • teobusetti

      8
      0
      Votes
      8
      Posts
      3154
      Views

      S

      try this:

      Set a new Variable (as 0) - for this example I will use 'RunOnce'
      Add a condition to run your EA only if RunOnce == 0
      After your BUY or SELL - set RunOnce to 1
      Add an extra condition to set RunOnce to 0 once the Opposite Cross Over happens again

      See screenshot

      http://imgur.com/a/yn6Rt

    • T

      Trailing stop on last bar's close
      Questions & Answers • • teobusetti

      4
      0
      Votes
      4
      Posts
      1015
      Views

      fxDreema

      The error means that SL is 0. SL is used for this particular MM and can't be 0, it must be something.

      I touched this project a little bit: https://fxdreema.com/shared/K3KusLlie
      So, you calculate all variables once per bar. But then you Buy/Sell at any time in the middle of the candle. The problem is that in the middle of the candle the price moves and eventually the calculated SL levels become wrong.

    • T

      Get trade entry price
      Questions & Answers • • teobusetti

      6
      0
      Votes
      6
      Posts
      1404
      Views

      T

      __teobusetti, how many variations of the same EA do you have? 🙂

      In pink blocks, if you see Open Price, this is the price where the trade/position/order is opened. No candles here[/quote:1ox4y3ky]

      ahahah...I was just trying different things to see if I got it right 😄

      Thanks for the help, it seems to be working as I expected now

    • T

      Please help: Place ATR Stop Loss?
      Questions & Answers • • teobusetti

      11
      0
      Votes
      11
      Posts
      4651
      Views

      T

      __If I understood this right, you want to modify your stop just once. Now the bot modifies it on every tick though, and so forgets about your open bar as time passes.
      Use "check stop-loss" (needs to equal 0) and modify the stop only then.[/quote:17xwgd3b]

      Thanks 🙂 exactly what I was looking for!!

    • 1 / 1