Code questions

TomDominic

Trader
Apr 30, 2023
40
1
14
27
Kenya
i need a code to compare the bid price and the openning price....plzzz and how can i get to se the bid and open price on the screen,
 

TomDominic

Trader
Apr 30, 2023
40
1
14
27
Kenya
I also have a code here but when i try to combile iam getting this error,,,

"}"-unexpected end of program
"{"-unbalanced parantheses
2 errors ,0 warnings
i cant find this errors ,,,,whats the solutions to this...
 

Enivid

Administrator
Staff member
Nov 30, 2008
19,228
1,507
144
Odesa
www.earnforex.com
I also have a code here but when i try to combile iam getting this error,,,

"}"-unexpected end of program
"{"-unbalanced parantheses
2 errors ,0 warnings
i cant find this errors ,,,,whats the solutions to this...
The problem is that you have parentheses opening or closing in an unexpected place.
 

TomDominic

Trader
Apr 30, 2023
40
1
14
27
Kenya
helloo,,,
look at this,,
MQL4:
Open [0];
 
    double openning_price ;
    openning_price = Open [0];
 
    string openning_message = "The openning price is :";
 
 
     Comment ("openning_message,openning_price");

i hav e tried to run this code but iam not getting what i want ,,openning price on the chart window ,,where did went wrong .
please correct my code and let me have the correct one.
 
Last edited by a moderator: