@rsquared1 not a coder so cant help much. But why do you use "-" infront of candle id?
Posts made by vonmunchy
-
RE: Moving Average is bugging?!posted in Questions & Answers
-
RE: HORIZONTAL LINE PROPERTY....PLEASE HELPposted in Questions & Answers
@ladydolares your dublicating threads. i already replied to your previous thread. Buy/sell works in the link i posted
-
RE: How to look back and identify the 1st hour of the previous day ?posted in Questions & Answers
use market properties. You will find what your looking for in there
-
RE: Why it doesn't work???posted in Questions & Answers
@bagheria change the group mode to either manually opened trades or all.
-
RE: Turn off EA after 4 consecutive lossesposted in Questions & Answers
@lrswatson i havent tested this since i never needed it. Play around with these blocks.

-
RE: link in mql5posted in Questions & Answers
@max-c https://fxdreema.com/shared/zy3JAdYad
check the settings
-
RE: variable and currency nameposted in Questions & Answers
@xander take a look at the project file below.
The symbol name is in a variable
-
RE: auto closing tradesposted in Questions & Answers
@kallosh i converted the project to mq5 to save me some trouble since i dont have any MT4 platform. All i did was removed the For each trade block and added position closed blocks. You can see the changes for yourself since the project link is above.
Delete these blocks.

and add these to yours and it should work.

The way to learn is to continue to build different projects, read the forum for any issues since most issues are common and someone very well may have posted it before and a solution may have been given.
And as for the reason why, i guess it has something to do with how For Each Close Position block is calculated. You can read the description as shown below. Im not expert just so you know.

All block descriptions are given and i suggest you read the stuffs mentioned in instructions and examples shown as well to undestand how different blocks operate
-
RE: auto closing tradesposted in Questions & Answers
https://fxdreema.com/shared/3quzsyNqd
see the changed made and for simplicity i changed group to all.
FYI: Any sort of zone recovery system is a waste of your time unless you plan to start off with a very large capital such as 10k plus.
-
RE: HULL MA X< OR x> MA not working right.posted in Questions & Answers
@johann-0 if its a mql you see the buffer names for yourself and set buffers accordingly and if its a ex4/5 or your still unsure of buffer values than trace them. Read the instructions below.
-
RE: auto closing tradesposted in Questions & Answers
@kallosh use for each trade close block to close all trades. Same for check loss and check profit blocks.

-
RE: Delete pending order if next candle close below open price?posted in Questions & Answers
@gobeef your logic is wrong. you have 2 conditions that are opposite of each other and when met, closes both buy/sell orders.
-
RE: Stop Loss at Minimum Pips or ATR*Multiplier. Whichever is largerposted in Questions & Answers
@ed_h iv never needed a minimum sl distance so far so i cant help you. You can play around with the blocks shown below. Upon placing a trade, checks the distance from open price to SL and if its lower than whatever pip amount than modify the stop to the minimum amount. And the mimium sl can be a constant.

-
RE: Stop Loss at Minimum Pips or ATR*Multiplier. Whichever is largerposted in Questions & Answers
@ed_h there are so many threads on ATR SL and TP. Here is a quick summary.
Create the following variables and constants. For an example.
Constants:
Atr 21
Atr_sl_multiplayer 4
Atr_tp_multiplayer 6Variable:
AtrvAdd a variable block, choose ATR with Atr constant and set Atrv as varible.
Under Stop loss/take profit, choose custom price faction. And type
Atrv * Atr_sl_multiplier (for sl. Remove the space before and after *)
Atrv * Atr_tp_multiplier (for tp Remove the space before and after *)Basically whatever the ATR period that's in the variable block gets multiplied by the multiplayer and sl/tp is placed accordingly


