
Could someone please advise if this is the correct way to measure the distance between previous candle close and current candle open
Thank you
Posts made by kriordan
-
Measure gap between last close and new openposted in Questions & Answers
-
RE: Hello, how can you use the Makdi histogram on the site, the Makdi indicator that I am using does not have a histogram?posted in Questions & Answers
@alireza77 the value of the histogram is the value of the MACD line
-
RE: Undeclared Identifier EA Wont Compileposted in Bug Reports
Thanks for your response and the test EA now compiles
The author of the indicator has many others that use external files so will try to modify these as you have done
-
Undeclared Identifier EA Wont Compileposted in Bug Reports
The indicator compiles in mt5
https://www.mql5.com/en/code/1352
but the test EA will not
0_1638938242311_20211203 i_klprice Test (1).mq5
Could you please help me out with this one - been trying to solve it for over a week
-
RE: Undeclared Identifier Smooth Methodposted in Questions & Answers
yes it compiles and works in mt5 but wont compile when incorporated into an EA
-
RE: Undeclared Identifier Smooth Methodposted in Questions & Answers
Thanks for responding
Indicator
https://www.mql5.com/en/code/1352
Expert0_1638646107957_1638510862740-20211203-i_klprice-test.mq5
-
RE: Undeclared Identifier Smooth Methodposted in Questions & Answers
@kriordan said in Undeclared Identifier Smooth Method:
0_1638510860291_20211203 i_klprice Test.mq5 0_1638510901348_i-klprice.mq5
Could somebody please help me on this one - been driving me crazy!
The indicator i_klprice compiles properly but when I include it in an EA I get errors. The indicator uses Smooth Algorithms.mqh and I think that is where fxdreema is not recognizing this and cant find Smooth Method
https://www.mql5.com/en/code/1352 - this is the link to the indicator
0_1638580506360_20211203 i_klprice Test.mq5
and this is the uploaded EA that will not compile correctly
-
RE: Undeclared Identifier Smooth Methodposted in Questions & Answers
Yes I will try copying rather than uploading
-
Undeclared Identifier Smooth Methodposted in Questions & Answers
0_1638510860291_20211203 i_klprice Test.mq5 0_1638510901348_i-klprice.mq5
Could somebody please help me on this one - been driving me crazy!
The indicator i_klprice compiles properly but when I include it in an EA I get errors. The indicator uses Smooth Algorithms.mqh and I think that is where fxdreema is not recognizing this and cant find Smooth Method
-
RE: Set Risk Limit for Stop Lossposted in Questions & Answers
Not sure if anyone was going to reply but I now have the solution to a problem that has held me up for days. Instead of setting the Stop Loss as a variable and the maximum stop loss as a constant I did the following
Limited the risk by using the distance condition and set the maximum distance as a constant
Good luck with your trading -
Set Risk Limit for Stop Lossposted in Questions & Answers
- [0_1600040457692_AA Max Risk.mq5]
Hoping someone can help with my problem
I want to be able to limit trades entered into based on Maximum Risk. I have set the Risk calculation as the lowest candle in the last four for Buy positions and reverse for sell.
I then set the Maximum Risk as a constant but the EA takes no notice of this condition.
I have tried changing between Numeric and Pips and Value As Is - all to no avail.
Thank you in anticipation
- [0_1600040457692_AA Max Risk.mq5]
-
Trading start and finishposted in Questions & Answers
Hi,
Could someone please point me in the right direction here
I want to start an EA on market open and close all trades before market open on the following day. On Friday all trades are closed before weekend closeThank you
-
RE: Set Order Level as Variableposted in Questions & Answers
@l-andorrà I think so but wont know till I try - thank you for your persistence and I will let you know how I go
-
RE: Set Order Level as Variableposted in Questions & Answers
@l-andorrà Not concerned about price movement below the buy line. I found this post on the Forum
https://fxdreema.com/forum/topic/7048/can-i-add-save-any-number-in-memory-ea/8It would appear that if I could save the ID of the candle where the buy/sell price was set then I could refer to that candle to get the buy/sell price and use expiry on the buy/sell block to ensure that the transaction occurred within 10 candles of the ID candle.
Do you think that the above Memory variable might be the answer? - it would need to self delete after the order was complete or expired. -
RE: Set Order Level as Variableposted in Questions & Answers
@l-andorrà thanks - any thoughts about my question?
-
RE: Set Order Level as Variableposted in Questions & Answers
@l-andorrà thanks for your response.
I can identify the buy price as per the attached project. I dont want to buy at this candle however until it is confirmed that the price will reverse and cross back above the low of this candle. This will also need to happen within 10 candle(set as a constant) or the trade will not proceed. https://fxdreema.com/shared/DFKpPnebb -
RE: Set Order Level as Variableposted in Questions & Answers
@q8carpenter Really appreciate your input - drawing a line as a chart object and then deleting it is probably the key to my strategy. Somehow need to ID the candle where the conditions are met so I can work out 10 candles from there.
I am using mt5 and not mt4 so hopefully can still do what you said -
Set Order Level as Variableposted in Questions & Answers

Hoping that somebody will help me with this one please.I want to be able to use the calculated buy level as shown(reverse for sell)
I know how to identify the candle that determines the buy level but cannot think how to use the obtained price level in the buy condition block. -
RE: Outagesposted in Questions & Answers
@l-andorrà yes gave up on it last night and will try again today