Forum

No charts on Android app

I suddenly can't see any charts on the Android app. I can log in and see my account info including balance and transaction history. I can even place orders as usual. The chart section though only shows a black screen with three big black and white candles that is obviously not a feed, just some kind

What is the order of orders?

When I select orders with OrderSelect(), the manual says, "Sorting of the resulting list of orders cannot be guaranteed." OK. But can I at least rely on their opening times or ticket numbers? Is it guaranteed that newer ones will always have larger OrderOpenTime() and OrderTicket() values

Variable struct names

This code doesn't work: struct LockStruct { int ticket; int locked; }; orderTicket1 = orderOpen( "buy" ); LockStruct orderTicket1 = {orderTicket1, 1 }; 'orderTicket1' - constant expression required declaration of 'orderTicket1' hides global variable If I am interpreting this correctly, I cannot

How do I access the 0th dimension of an array?

I actually avoid coming here, but I've spent 90 minutes trying to solve this big mystery with no success because the documentation absolutely does not help and all examples I find are very complex, seemingly going out of their way to avoid the simple. int Numbers [ 20 ][ 1 ]; Numbers[ 0 ] =

Comparing negative numbers

if (ProfitToday() <= MaxLoss) { Print ( "Exceeded. ProfitToday is: " + ProfitToday() + " MaxLoss " + MaxLoss);} The Print log says: Exceeded. ProfitToday is: -1.14 MaxLoss -10 I am confused. I thought -1.14 was > -10. But the condition is <= and it's triggering. I changed the condition to > and

Doing math with MODE_POINT

I do realize I am doing something stupid, but I'm not quite sure of what and why. I want to get the average size of candles. So I take say, the last 500 candles and measure their bodies with MathAbs (Open[i] - Close[i]); I add them all up. Then I divide that sum by 500. Additionally, I calculate

How do I make "draggable" lines?

When I add a horizontal line from the drawing tools menu, I can drag that line. When I add a horizontal line from an EA, I can't drag it. How are they different? Why can I drag one but not the other

How can I "invalidate" an already used Ichimoku Cloud situation?

I tried to make an EA based on Ichimoku Clouds and soon ran into a silly mistake. When all the conditions are met, the EA opens a trade. For example, long. If you're familiar with Ichimoku Clouds, you know what those conditions are. So the trade hits take profit and closes the trade. And guess what

OrderClose fails in Tester - error 138 (requote)

for (i = total - 1 ; i >= 0 ; i--) { if (! OrderSelect (i, SELECT_BY_POS, MODE_TRADES)) continue ; if (OrderCloseTime() != 0 ) continue ; if (OrderSymbol() != _Symbol ) continue ; if (OrderType() != 0 && OrderType() != 1 ) continue ; if (OrderProfit() > 0 ) { bool closedOK

Can BuyStop/SellStop be trusted?

I have an EA that only places orders of the BuyStop/SellStop type and only integer values. Of course the variable type has to be double, but the value is always an integer. When the price is touched, the order goes live. In one of my brokers, that has been working flawlessly for days. In the other