You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
There is no such thing. A candle is considered closed, when a new tick arrives past the last second of the current candle starting a new candle.
There can be minutes between ticks during the Asian session, think M1 chart. Larger charts, think weekend, market holiday (country and broker specific.) requires knowledge of when your broker stops and starts (not necessary the same as the market.)
"Free-of-Holes" Charts - MQL4 Articles 20 June 2006
No candle if open = close ? - MQL4 programming forum 2010.06.06
The code runs once per second on a timer and updates when one symbol starts a new bar. Nothing wrong.
Hello All -
Set up some decent EA's using EA Builder however am struggling to set one up using Fractals.
Given fractals appear as mid-point in 5-candle series, i expect i may be getting the 'shift' & index incorrect.
Trying to create a simple long (once i understand the shift/index i would be able to increase parameters)
Greatly appreciate the assistance! thank you, david
Since you haven't learned MQL4/5, therefor there is no common language for us to communicate.
If we tell you what you need, you can't code it.
If we give you the code, you don't know how to integrate it into yours.
We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your hundreds of lines of code. You are essentially going to be on your own.
EA builder makes bad code Bars is unreliable (Max bars in chart), volume is unreliable (miss ticks.) Always use time.
EA builder makes bad code, not adjusting for 4/5 digit brokers, TP/SL and slippage.
EA builder makes bad code, not adjusting for ECN brokers. pre-Build 500)
EA builder makes bad code, not checking return codes.
FX EA Builder makes bad code, loosing open tickets on terminal restart. No recovery (crash/power failure.)
FX EA Builder makes bad code, not adjusting stops for the spread.
FX EA Builder makes bad code, using OrdersTotal directly.
FOREXEADVISOR STRATEGY BUILDER makes bad code, compilation errors.
FOREXEADVISOR STRATEGY BUILDER makes bad code, not checking return codes.
Hiring to write script - General - MQL5 programming forum
Since you haven't learned MQL4/5, therefor there is no common language for us to communicate.
If we tell you what you need, you can't code it.
If we give you the code, you don't know how to integrate it into yours.
We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem, but we are not going to debug your hundreds of lines of code. You are essentially going to be on your own.
EA builder makes bad code Bars is unreliable (Max bars in chart), volume is unreliable (miss ticks.) Always use time.
EA builder makes bad code, not adjusting for 4/5 digit brokers, TP/SL and slippage.
EA builder makes bad code, not adjusting for ECN brokers. pre-Build 500)
EA builder makes bad code, not checking return codes.
FX EA Builder makes bad code, loosing open tickets on terminal restart. No recovery (crash/power failure.)
FX EA Builder makes bad code, not adjusting stops for the spread.
FX EA Builder makes bad code, using OrdersTotal directly.
FOREXEADVISOR STRATEGY BUILDER makes bad code, compilation errors.
FOREXEADVISOR STRATEGY BUILDER makes bad code, not checking return codes.
Hiring to write script - General - MQL5 programming forum
Thanks William, but not ready to code yet & don't need brick to the head.
To someone who started or used EA Builder, please only reply if you can assist. thanks
Question is how to open long trade (using EA Builder) for fractal occurring above candle.
My attempt is giving buy orders occurring after any fractal occurrence (above or below candle).
using: Fractal, Time Frame (Current), Indicator (Upper) Shift (3) 'is above' Candlestick, Index (3), Value (Low)
Good afternoon
I'm pretty new to coding and would like some assistance on an indicator that I'm trying to code. I'm basically making my own MA a band of the open and close values of bars depending on which one is where, i.e. if open is higher than close, it is saved to the top array, else it is saved in the bottom array. I have done a fair bit of troubleshooting on an EA i wrote, but I cannot get the same result on the indicator, unfortunately.
"Doesn't work" is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. You haven't stated a problem.
Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference
"Doesn't work" is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. You haven't stated a problem.
Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference
I know what it is supposed to do, but I don't know how to find out why it isn't working. I've used the Comment function to figure out where it stops working and found that it stops at the point where it is supposed to put the values in the mentioned arrays. I'm asking for guidance on troubleshooting, not someone fixing it for me. Telling me what I missed or what I did wrong and where to read up for the solution will help me a lot. Thanks for the link. At least it is one of my problems solved. Is there a more efficient way than to use Comment() to troubleshoot where code bombed?
I know what it is supposed to do, but I don't know how to find out why it isn't working. I've used the Comment function to figure out where it stops working and found that it stops at the point where it is supposed to put the values in the mentioned arrays. I'm asking for guidance on troubleshooting, not someone fixing it for me. Telling me what I missed or what I did wrong and where to read up for the solution will help me a lot. Thanks for the link. At least it is one of my problems solved. Is there a more efficient way than to use Comment() to troubleshoot where code bombed?
Hi,
EMA (1) = 50
EMA (2) = 100
if (50 <100)
Close open buy position if any and open a sell position
if (50> 100)
Close the open sell position, if any, and open buy positions.
I want to develop a specialist consultant that meets these conditions, I shared the code I wrote. But it doesn't work as I want.
Can you help me to complete the parts missing in my code?