Forum

Is there a fix or add on to change time on cross hair to local time?

Is there a fix or add on to change time on cross hair to local time ? I don't want to have to calculate 10 hours difference for every part of the chart I look at

What does the Boyoyoyoying sounding alert mean?

When I have Meta Trader open during market hours Mon-Fri, I sometimes here "Boyoyoyoying". What does this mean? I don't have an expert advisor. Thanks

Not a programing question. Is there a setting that leaves marks on the chart that show both the open and close positions?

When the position closes, the chart shows no history. Without creating an Expert Advisor, this is want I would like to see on the chart. Thanks

Where is the Debug tab in the MetaEditor Toolbox window?

I'm reading a book and it say's "You can monitor the value of a variable during debugging by using the Watch window inside the Debug tab in the MetaEditor Toolbox window." Where is the — Debug tab in the MetaEditor Toolbox window? I'm using MetaEditor version 5. Thanks

I don't understand why the -1 in for loop OrdersTotal() - 1

The book says: The example below closes all sell orders currently opened by an expert advisor: I think I understand most of this code, but the: OrdersTotal () - 1 I don't get. Why - 1? Thanks. for ( int order = 0 ; order <= OrdersTotal () - 1 ; order++) { bool selected = OrderSelect (order

What does i mean at the beginning of so many words I see?

Does i stand for indicator or index? Or what? iBars, iBarShift, iClose , iHigh, iHighest, iLow, iLowest, iOpen and so many others? Thanks

While loop confusion

If this code is correct, then I think Output should be: 1, 2. Not: 1, 2, 4, 5. And the while loop would go on forever with count always == 3, because continue; would skip both lines 6 and 7. If the book is right and I am wrong, then what do I not understand here? Thanks. 1 . int count = 1 ; 2 . 3

Is there a name for these?

Are these (&) characters in the documentation? If not what are they called and what do they mean? For example, const datetime& time[], — has an (&) symbol or character. int OnCalculate ( const int rates_total, const int prev_calculated, const datetime & time[]

NormalizeDouble() not always rounding

The NormalizeDouble function almost always rounds to 4 places, but every once in a while I get (ROC is: 0.0005999999999999999) some non-rounded number. Can someone enlighten me why this is and how to fix? Thanks. void OnTick () { double Price1 = iClose ( "USDCHF" , 1 , 1 ); double

Strategy tester Close price numbers don't equal 4 hours

double ClosePrice = Close[ 0 ]; Comment (ClosePrice); When I test this in the strategy tester the result is hundreds of numbers zipping by per second. I am trying to get one number every 4 hours. I think a period() or PERIOD_CONSTANT is needed but I don't know where to start. The definitions from