Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 360
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
It makes sense to declare statics inside functions. The scope is only a function block.
It works the same way:
In which case will the difference be felt? ALXIMIKS, thanks for the reply too.
Hello!
Can you tell me how to install an additional indicator/robot on an mt4 installed on an iphone/ipad? Is it, in principle, possible? With Windows it's elementary simple, but with Apple mobile products it's not so obvious.
Logic says that it is possible. After all, a number of indicators are already preinstalled. But what and where to copy is not clear, the file structure is different. Has anyone has not encountered such a problem?
Thanks in advance.
I am making an indicator based on moving averages . The idea is to cut off insignificant movements within specified points. Let's say we set a filter of 50 pips. The indicator is decreasing but the decrease is less than 50 pips, therefore we take yesterday's value of the average and write it down and set its level for the current date. On the next bar we check the difference, the current value minus the value we have recorded, if the total does not exceed 50 pips, we set the level that is stored in the static variable to the current value. If the value exceeds it, the value becomes the current value, i.e. similar to a moving average with a shift of zero.I have tried different variations, but so far I have not found the right solution.
For the sake of simplicity I am attaching the code for drawing only the declines. The problem is that the indicator draws on the rise. And the main one is that when I run it in the tester I can visually see the indicator changing, while there is no exit outside the filter. I assume that somewhere the value of the recorded "MA_otshet" value is lost.
Good afternoon. Please help.
I need all orders to be closed at 23 55 and on Friday trading ends at 22 00, so there is a problem with the trade
i found in the tutorial script in the time section help please add the parameter number of the day, ie Friday orders were closed at 21 55 and on normal days at 23 55 or can share the link if there are ready-made solutions
//--------------------------------------------------------------- 4 --
Easy!!!
Thanks. But do you have a clue. I only need 1 day's worth of information. That is to display the profit information for the last working day
Variables are declared. It doesn't work. It's all zeros.
for (p=0; p<OrdersHistoryTotal(); p++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) {
if (StrToTime(TimeToStr(TimeCurrent(), TIME_DATE))<OrderCloseTime() && (OrderType()==OP_BUY || OrderType()==OP_SELL) )
p0+=OrderProfit()+OrderCommission()+OrderSwap();
}
}
double r0=p0*100/AccountBalance();
Thanks. But, uh, can you give me a hint? I only need 1 day. That is, to display the profit information for the last working day
Variables are declared. It doesn't work. It's all null.
for (p=0; p<OrdersHistoryTotal(); p++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) {
if (StrToTime(TimeToStr(TimeCurrent(), TIME_DATE))<OrderCloseTime() && (OrderType()==OP_BUY || OrderType()==OP_SELL) )
p0+=OrderProfit()+OrderCommission()+OrderSwap();
}
}
double r0=p0*100/AccountBalance();
The principle is easy to understand. In order to calculate the profit/loss for the current day, you need to pass it the value: fCalculate_Pribul (-2, iTime (Symbol(), PERIOD_D1, 0), "").
Good afternoon. Please help.
I need all orders to be closed at 23 55 and on Friday trading ends at 22 00, so there is a problem with the trade
i found in the tutorial script in the time section help please add the parameter number of the day, ie Friday orders were closed at 21 55 and on normal days at 23 55 or can share the link if there are ready-made solutions
//--------------------------------------------------------------- 4 --
Of course, the code was written on the scratch, but it should work, at least you should understand it
Where does this part specify the thickness of the line? I was even embarrassed. :(
Where does this part specify the thickness of the line? I was even embarrassed. :(
Nowhere, for STYLE_DASH there is no thickness greater than normal