Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 838
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
ENUM_DAY_OF_WEEK is int type.
You cannot do it manually, the terminal only draws these icons if you trade using the programme. Alternatively, you can copy the manual trading history to the chart and all trades will be marked.
And if you modify the colour of each open order in this way, will the trade be reflected on the chart?
int i2;
for (i2=OrdersTotal()-1; i2>=0; i--){
if (OrderSelect(i2, SELECT_BY_POS, MODE_TRADES)){
if (OrderSymbol()==Symbol()){
if (OrderType()==OP_SELL){
c=OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),OrderTakeProfit(),0,Red);
}
if (OrderType()==OP_BUY){
c=OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),OrderTakeProfit(),0,Green);
}
}
}
}
}
Decided to display the balance as an indicator when running the visualisation
from the indicator:
And it's called up too often) It makes the screen go white. The question is rhetorical, what's wrong?
Decided to display the balance as an indicator when running the visualisation
from the indicator:
And it's called up too often) It makes the screen go white. The question is rhetorical, what is wrong?
bool balans;
string balans_S;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Insert this code into your Expert Advisor and happiness may come to you
bool balans;
string balans_S;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Insert this code into your Expert Advisor and happiness may come to you
Strange, it works for me. Maybe there are errors in the log file?
I figured it out, I mistakenly saved the template with the name Debug.tpl with the Expert connected, so there was an extra instruction at the end of the template file:
Saved template without expert, everything worked, thanks.
Please advise, I want to make my code to increase LOT in case of a loss trade, and in case of a profit LOT returned to the original volume!
To display the balance as a line in the visualisation, took the code from the article.
In the EA:
In the indicator:
The line does not appear. At the end there is only a value on the last, zero bar in the buffer.
To display the balance as a line in the visualisation, took the code from the article.
In the EA:
In the indicator:
The line does not appear. At the end there is only a value on the last, zero bar in the buffer.