fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. johnkscott4781
    3. Posts
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Best 2
    • Controversial 0
    • Groups 0

    Posts made by johnkscott4781

    • RE: Problem - Modify Stop to break even based on ATR

      @roar Thank you! That logic makes sense. I haven't tried using variables yet. Well...let me say I looked at it and got a little confused so my mind didn't go that direction. But this makes sense. Thank you! I will try to incorporate this into my full algo. Much appreciated.

      posted in Questions & Answers
      J
      johnkscott4781
    • RE: Problem - Modify Stop to break even based on ATR

      Hi. Actually when it malfunctioned I had that block set to the default (Group#). I changed it to manual and automatic as there are other manually placed trades that need to exhibit this behavior as well.

      It almost seems like there is a hiccough where it thinks the price has reached the 1x ATR distance and then modified the stop loss accordingly (and to the correct level). It is just that the price never even came close to reaching the 1x ATR distance so the trade never had a chance to get to my take profit.

      Plus I noted in the terminal Journal after I posted this question the EA tried to modify trades on a few pairs that I didn't even have any trades in. This caused no harm but seemed really strange.

      If this helps here is how each "trade" is set up. Each trade is actually 2 trades...

      Trade 1 (automatically entered by EA) - TP of 1x ATR and SL of 1.5x ATR. So this trade should hit TP more or less at the same time as the 1x modify stop loss would trigger (or may not even trigger at all because it already TP)

      Trade 2 (manually entered because it is identical trade to Trade 1 except no TP. Have to do this to get around LIFO restrictions using MT4 & Oanda. I am forward testing this way for now but will eventually set this trade to auto trigger in second terminal). This trade is meant to run until exit criteria are met. The initial SL modification is this 1x ATR which would bring it to my break even level. From there I have it modifying the SL daily for a trailing stop which seems to be working fine as far as I an tell in my back testing (haven't had the pleasure of this being forward tested yet :)).

      I don't know if that helps any. Thanks for taking a peek!

      posted in Questions & Answers
      J
      johnkscott4781
    • Problem - Modify Stop to break even based on ATR

      https://fxdreema.com/shared/nM92DEEVd

      Hi everyone. This has me a little stumped. The goal is that once the price has reached 1x the ATR in profit that the stop is modified to break even (which at that point in time would be 1x ATR away from the current price). It seems to work sometimes and not work sometimes. For example, last night I had 4 open trades and it only (so far) malfunctioned on one of them.

      What happened is that it did the modify stop action (to break even) even though, looking at the chart, the price never even got close to 1x ATR from the opening price. I was thinking about putting another pips away block in front of the current one with the condition that it has to be at least 50 pips in favorable direction before it passes to the current block. But I'd prefer to just make it work correctly. Thoughts?

      Thanks in advance for any help you can offer.

      posted in Questions & Answers
      J
      johnkscott4781
    • RE: Help With using variables (I think)

      Hi. Thanks for your help. I just sorted the issue. I found a beautiful little block called Check Distance which I had not previously seen. Works brilliantly for this!

      posted in Questions & Answers
      J
      johnkscott4781
    • RE: Help With using variables (I think)

      Hi. This is the whole project. So far. I have a couple more components to add (this variable question being part one of them). I have been building one component at a time and back testing as I go to see what helps and what doesn't. I would say this is 80% complete to what I am envisioning.

      Eventually I will likely substitute different components in and out to find a combination that works "best". But the guts of the logic won't change. Just the actual indicators that make up the conditions. 🙂

      posted in Questions & Answers
      J
      johnkscott4781
    • RE: Help With using variables (I think)

      Thank you Xfire! I really appreciate it.

      Simple stuff gets missed hahaha! I based on what you posted I revised my project. I did indeed have wires crossed on the buy and sell variable. Copy and pasted and didn't revise. Oops! I made corrections and I still can't seem to get it to work the way I envisioned. It will not initiate and buys or sells. I must have something conflicting. Like I said above, if I take that variable loops out it executes just fine. So I've got something wrong here.

      Updated project link https://fxdreema.com/shared/EJHgQxqOc

      Thanks again!

      posted in Questions & Answers
      J
      johnkscott4781
    • Help With using variables (I think)

      https://fxdreema.com/shared/0kx4JMcie

      First off. Brilliant site here! Love it!

      Sharing my project. I have gotten it to work well in testing up until I wanted to add a condition to each side of the main algo area. I looped in blocks 36,38,39&40. What I am trying to do is allow a buy or a sell only if the distance between the current price and a moving average is less than the ATR14 value. What I did is set up two variables. BLDistBuy and BLDistSell. I am using blocks 36 & 39 to populate the variables so I can use them in the calculations in blocks 38 & 40. Trouble is, when I test it it appears not to work. If I take out my variable loops (blocks 36,38,39 & 40) the EA runs just fine. When I keep the variable loop in - no trades trigger. I am SURE I am doing something wrong 🙂 and have looked through a crapload of posts to try to figure this out. I would really appreciate if someone could let me know what I am missing here.

      Thanks in advance!

      posted in Questions & Answers
      J
      johnkscott4781
    • 1 / 1