In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.
Did you code this yourself?
And do you know how you do this
Ahmet Metin Yilmaz:
Did you code this yourself?
Hi Ahmet i took a Udemy class and did the code based on the book Naked Trader.
Did you code this yourself?
And do you know how you do this
-
int onInit(){ return(INIT_SUCCEEDED); }
Misspelled standard function. - kmmr12: I was wonder if of you mql4 pros can help with with two errors I can't seem to get rid of showing:You don't have two errors, you have dozens. I suggest you throw that away and start coding from scratch. It is that bad.
-
void OnTick() { -(unbalanced parenthesis error here) if ( Time[0] > CurrentBarTime ) { -(unbalanced parenthesis error here) -(same indent) if ( High[1] > High[2] && Low[1] < Low[2] ) { -(unbalanced parenthesis error here) int HighestRangeCandle = GetHighestPreviousRangeCandle(BiggestCandleRange); { -(why is there an opening brace here) if( HighestRangeCandle == 1 ) { -(unbalanced parenthesis error here) ⋮ if( isBull == true ) { ⋮ } -(FIVE unbalanced parenthesis errors above) bool IsThereRoomToTheLeft( bool is Bull ) -(therefor function imbedded) { double Range = High[1] - Low[1]; if( isBull == false ) } -(What is this closing brace doing here.) I stopped looking at this point.
- Simplify your code where possible.
bool isBull = false; if( Open [1] < Close[1] ) isBull = true;
bool isBull = Open [1] < Close[1];
if( HowMuchRoomIsThere > RoomThreshold ) { return true; }else{ return false; }
return HowMuchRoomIsThere > RoomThreshold;
Hi William
Thanks for the feedback.

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
Good Day All,
I was wonder if of you mql4 pros can help with with two errors I can't seem to get rid of showing:
Here is the code:
(unexpected end of program error here)
Thank you so much in advance.