Thats pretty complex
, anyway I have a new problem, how do I stop trading till the next day after hitting take-profit. I know variables could work, problem is I dont know how to use them 
Posts made by uchiha
-
RE: Fliter Trade Signalsposted in Questions & Answers
-
RE: Fliter Trade Signalsposted in Questions & Answers
Okay, conditions for sell are;
-blue line is lower than green line
-price is below dashes line
Sell 1 will be executed because it is the first trade of the day
Sell 5 will be executed because there was a buy signal indicated by the blue arrow (even though the buy wasnโt executed)hope its clear.
-
RE: Fliter Trade Signalsposted in Questions & Answers
In the attached picture, I want to filter the trade such that only sell 1 and sell 5 are executed. Any idea is welcome
......
hhh.png -
RE: how to use loop breakposted in Questions & Answers
Hello
I want my EA to partially close a trade once it reaches a pip target, however I want this to only happen once. My loop keeps closing it partially multiple times till the opened trade is completely closed.
Heres my try;
https://fxdreema.com/shared/a5YUTKMV
How to modify?
-
RE: Working with indicator valuesposted in Questions & Answers
Finally Solved

Used [Candle Open/Candle ID (2)]. It was a huge pain indeed !
-
RE: Working with indicator valuesposted in Questions & Answers
Taken you advice and tried so many tricks (including changing the candle ID) to achieve the desired result, still no success.
It would be great if you made a separate function, [on candle close], the [candle close] function is difficult to work with.
Trying to find the right blocks to interpret this:
......
Capture1.JPG -
RE: Skip the first signalposted in Questions & Answers
got an indicator similar to yours and I want it to skip the first signal
-
RE: Working with indicator valuesposted in Questions & Answers
Hello people
My indicator assigns values to each candle different from the candle price.
I want to compare two candles with their corresponding indicator values.
Example:
previous candle (1): close.price = 1.2 | indicator value = 1.4 [ close.price < indicator value ]
current candle (0): close.price = 2.3 | indicator value = 1.6 [close.price > indicator value ]BUY Condition:
current candle (0) : [close.price (0) < indicator value (0)] AND previous candle (1) : [close.price (1) > indicator value (1)]How can I do this??
P.S: Values in Green are the Indicator Values. While the lines are the approx. close prices of each candle
......
PRICE.JPG -
RE: Skip the first signalposted in Questions & Answers
hello Tcanuto
Please can you share how you solved your problem, I'm having a very similar issue.
-
RE: how to multiply ATR value and set as stopposted in Questions & Answers
It would be nice if other users of this lovely software and forum can help each other out too, it'll help reduce the creators workload.
heres my 2 cents

https://fxdreema.com/shared/snVVZ9INb
Take a nice look at the example.
-
RE: Is there some relatively good MQL4/MQL5 programmer out thereposted in Questions & Answers
Try forexfactory. I'm sure you'll find willing programmers in their 'platform' forum. Wish I could help.
-
RE: Open and Close trades at specific timeposted in Questions & Answers
Here is my example code using the time filter.
It allows trades 9a.m on Monday to 11p.m on Friday. Closes all opened trades once its past 11:30p.m on Friday.
Please let me know if the logic is right. Thanks.
-
RE: Open and Close trades at specific timeposted in Questions & Answers
Hello fxdreema
I am trying to set this rule:
Close all open trades before sessions close on Fridays, and Allow trades to Open on Mondays at a specified time
I cant seem to get the logic using the current 'time filters' any ideas??
-
RE: Projects Dissapearedposted in Questions & Answers
I dont know what happened but after I began my 4th project or so, the rest of my projects dissapeared

Can I get them back?
-
RE: Locking In Break Evenposted in Questions & Answers
Why dont you just make your trailing stop, begin at a price higher than your break even price?
-
RE: Coding Problem - comparing two pricesposted in Questions & Answers
Thanks for the education, you sure put a lot into fxdreema
I have modified the format based on your example and advice, it would be great if you could look through it and tell me if it functions like I described it in the template. Please also have a look at the 'onTrade' section. Any other advice to complete the EA is welcome. Also is it possible to know the right slippage number to use?
-
RE: Coding Problem - comparing two pricesposted in Questions & Answers
Hello people I'm new to this software, and I have a problem thats giving me quite the headache...here's a statement of what I am trying to code:
The current trade signal should be compared to the last trade of the same direction (the current buy/sell signal is compared to the previous buy/sell trade), if that trade ended in profit or break-even, the current trade can be opened as per the (buy/sell) signal, but** if the trade was a loss (stop loss or direct loss) then, do not open the trade unless the current signals price is higher (for BUY signal)/lower (for SELL signal) than the previous tradesโ entry price.**
I would appreciate any ideas and contribution. Thanks