Stop Recalculations Glitching
-
Hi, I previously posted an inquiry to assign Stops to the lowest lows since entry of a trade. I thought that would provide me with the correct ammunition. I have a complex Stop Loss calulation that adjusts overtime. I have programmed most of this, but the EA keeps stopping. If anyone could assist It is as follows:
Daily Chart
- 10 Period MA Simple On Close
- ATR 40 Period
Long Entry - Close Of Today (Minus) 10 period MA Of Today = Positive
- 10 Period MA Of Today (Minus) 10 Period MA 10 Days Ago = Positive
- Close Of Today’s Candle (Minus) Close Of Candle 40 Days Ago = Positive
Enter Long Position Open Of The Next Candle.
Short Entry
- Close Of Today (Minus) 10 period MA Of Today = Negative
- 10 Period MA Of Today (Minus) 10 Period MA 10 Days Ago = Negative
- Close Of Today’s Candle (Minus) Close Of Candle 40 Days Ago = Negative
Enter Short Position Open Of Next Candle
Initial Stop – Long
- ATR Of Today (Times x2) Under The Most Recent Lowest Close
Progressive Stop – Long - Each Day The New Stop Is Calculated And Placed At The Most Recent Lowest Close.
- Each Day, The Long Entry Condition Formulas Are Calculated. Each Day A Single Formula Results In A Negative Value, The Stop Is Calculated As Above But Reduced By 1/3rd.
- Each Day All Formulas Result In Positive, The Regular Stop Applies.
Initial Stop – Short - ATR Of Today (Times x2) Over The Most Recent Highest Close
Progressive Stop – Short - Each Day The New Stop Is Calculated And Placed At The Most Recent Highest Close.
- Each Day, The Short Entry Condition Formulas Are Calculated. Each Day A Single Formula Results In A Positive Value, The Stop Is Calculated As Above But Reduced By 1/3rd.
- Each Day All Formulas Result In Negative, The Regular Stop Applies.
Each Trade Continues Until Stopped Out. Each Trade is .02 Lots Per $1,000 In Equity. Minimum .01 Lots
-
http://prntscr.com/4c6te4
This is the same as just checking if one of the values is > than the other. You don't need this Formula.
Also somewhere I saw "OR" blocks... in general these are also not needed. Especially in serial connection like this: http://prntscr.com/4c6u66That option "% of Equity => Lots" is some simple calculation, which means that if you have 1000 dollars, 100% will equal to 0.01 lots, (when 1 lot is 100000). In this case 2% is something very very small and the minimum will be always taken.
-
Thank you for the assistance. There is one problem though, you mentioned the OR blocks. this ties into my stop loss formula and management of stop loss. If one of three conditions is negative, the action occurs, I used OR in that case to string 1, or 2, or 3 is negative then... All three are not required to be negative. My entries for trades is working and I will change the formula approach, but I cannot get the stop loss to work? If all three formulas are negative a stop loss of 2xATR is placed above the lowest most recent close. If one formula is positive, the 2xATR is reduced by 1/3rd instead. The stop losses are not working and I cannot figure out how to move each one to the lowest close or highest close within a move? If I select up to 20 candles back I will likely be fine but I am lost on this....
-
The problem with OR blocks is that they are not supposed to be used that way. There are some rules. Check this one: https://fxdreema.com/demo/blocks-execution-order
-
I have repaired the logic for trade entries as you suggested. I have also prepared the stop loss logic as per the document displayed in this string. The stop loss may be the glitch because the EA will not run?
-
If we are talking for CONQUERER 3, there is nothing in there for SL, trades are created without SL/TP, and there is nothing else to modify it later.
The same with CONQUERER... and I think something is missing in the Buy now block.There is something wrong with these two. There are two block groups that finish with "Condition"... why... no reason here. I told you that there are some rules.
- Under "on Tick" the blocks on top level are run on every tick. Top level... this is when nothing is connected to their input, but they are connected to another blocks from their output(s).
- Totally disconnected blocks are not included to the final project. It's the same if they are not there.
- When a block does what it is designed to do, it goes to it's orange output... or to the other output, depending on what is the block. If there is a block connected to one of the activated outputs, it runs immediately.
- If there are 2 or more blocks connected from the same output, the first one to run is the one with lower ID number. Everything is synchronous.
Look here to see which block runs first: https://fxdreema.com/demo/blocks-execution-order
And here to see the basic events: https://fxdreema.com/demo/mt4-events
And here for more basic examples: https://fxdreema.com/examples -
Hi, The reason I am ending with condition is because the formula result = stop loss modification. I am attempting to move the stop loss on open trades. If 1 of 4 conditions on previous candle is not met, = (ATRx2)/(3)x(2) + the highest close of the past 10 candles = Stop Loss (reducing the regular ATRx2 stop loss by 1/3rd). There are 4 conditions to enter trade then if each condition is met for each new candle, (ATRx2)+ the highest close of the past 10 candles.
This is not a trailing stop so I tried a different method?
-
Condition = If. If something... This is a check, not an action. Please, look at the examples!
-
Got It! But I am looking for IF Condition with IF NOT as an alternate connect. This is not at all clear in the blocks?
-
Hold the mouse over any block and ? will appear - click on it. Or right-click on a block and go to "Information". Or click on "Help" on the main site, where you will see very simple list of the main 3 outputs, and what each one means: https://fxdreema.com/documentation/
-
Thank you for your guidance. I am using TEST EA 1 as the most current version of this strategy. It is running successfully until a trade is stopped out and then it stops running? Can you review and advise on my oversight? Thank You!
-
I also noticed at shorter time frames, the EA is executing rapid trades and closes without properly placing the stop loss. The stop loss works sometimes and then fails to initiate immediately after a trade closes and gets re-triggered.
-
Now check this: https://fxdreema.com/demo/mt4-loop-how-it-works

In MT4 you can have 1, 2, 3.... 100 trades at the same time. So when you want to do something with one of them, you must point to the right one. That's why I always recommend to use "For each Trade" block before using any other pink block from the same category.
-
Thanks. One step ahead. Found That. But new issue regarding my new Stop Loss Post..... THANKS!!!