Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 849

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
Read it carefully. I don't remember in detail, but code 3 is not part of Wingdings.
ps; Here is what is in the note
The special arrow codes cannot be used in the arrow display when setting the arrow value for linesthat have a DRAW_ARROW style.
This is an EA and it has a function.
It's the councillor.
It doesn't matter.
When can I do it?
This is the Expert Advisor.
There is a second function in the same advisor. Everything is fine there. (ObjectSet(objName, OBJPROP_ARROWCODE, 1);)
int counted_bars=IndicatorCounted(); // How many bars have already been counted
if (counted_bars<0) return(-1); // Check possible error
if (counted_bars>0) counted_bars--; // count the last counted bar
limit=Bars-counted_bars; // Start from the last counted bar
// - 1 - ============================ End of block ===================================
// - 2 - ======================= Display indicator on history ======================
for(i = limit; i >= 0; i--)
{
FastMA= iMA(NULL, 0, FastMAPeriod, FastMAShift, FastMAMethod, FastMAPrice, i);
SlowMA= iMA(NULL, 0, SlowMAPeriod, SlowMAShift, SlowMAMethod, SlowMAPrice, i);
}
// - 2 - ============================ End of block ===================================
// - 3 - ======================= Signal output ========================================
//if (LastBar != Time[0]) // once per bar
//{
is this it?
There is a second function in the same advisor. Everything is fine there. (ObjectSet(objName, OBJPROP_ARROWCODE, 1);)
Good afternoon, all.
Can you tell me what condition to add before OrderSend, so that the order is not executed if the previous open position is in deficit? So that there is no averaging.
Good afternoon, all.
Can you tell me what condition to add before OrderSend, so that the order is not executed if the previous open position is in deficit? I want to avoid averaging.
In general, the check goes like this
OrderSelect(ticket,SELECT_BY_TICKET);
if(OrderProfit()<0) { }
And you can put anything you like in brackets. I, for example, use it this way to make the "Martin" method work)
Good evening, could you please tell me how the EA works. If I write return directly in the main function Start, does the EA terminate? Thanks in advance!