Sir, i want to ask this function, inside Trade Library
and this is sample ea from mql5
1. Please insert the code correctly: when editing a message, press the button and paste your code into the pop-up window.
2. Coloring is available for the inserted code:
if(iTime(m_symbol.Name(),InpWorkingPeriod,0)==m_last_deal_in) // on one bar - only one dealreturn(true);
double ma_high[],ma_low[],ma_median[];ArraySetAsSeries(ma_high,true);
ArraySetAsSeries(ma_low,true);
ArraySetAsSeries(ma_median,true);
int start_pos=0,count=6;
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Type of triggered pending order
Code 'TypePendingOrderTriggered.mq5'
Type of triggered pending order
Code 'TypePendingOrderTriggered.mq5'
Thank you. This is going to be helpful in my current project itself.
Dear Vladimir,
i want to ask about PostitionCloseBy.
Say BuyStop triggered, it closes Sell Position.. Thanks in advance..
Code example: Pending triggered and close opposite
Code example: Pending triggered and close opposite
Thank you very much sir. I started learning mql5... Thank you, thank you..
I saw some of your code about DEAL_REASON_TP, DEAL_REASON_SL.
Some not using DEAL_ENTRY_OUT, some use
Sir, i want to ask this function, inside Trade Library
and this is sample ea from mql5
Sir, i want to ask this function, inside Trade Library
and this is sample ea from mql5
1. Please insert the code correctly: when editing a message, press the button
and paste your code into the pop-up window.
2. Coloring is available for the inserted code:
1. Please insert the code correctly: when editing a message, press the button and paste your code into the pop-up window.
2. Coloring is available for the inserted code:
Dear Vladimir,
I want to ask about using rectangle as level for pending orders. Here is my code :
It opens limit order, but still dont update (modify) when i drag that rectangle.
If i put HandleRect() function at OnChartEvent, whenever i drag that rectangle, i can see all values update immediately. But OnTick, it doesn't update
Dear Vladimir,
I want to ask about using rectangle as level for pending orders. Here is my code :
It opens limit order, but still dont update (modify) when i drag that rectangle.
What principle do you use to place a pending order? Which bar do you check?
Dear Vladimir,
I want to ask about using rectangle as level for pending orders. Here is my code :
It opens limit order, but still dont update (modify) when i drag that rectangle.
If i put HandleRect() function at OnChartEvent, whenever i drag that rectangle, i can see all values update immediately. But OnTick, it doesn't update
Don't use 'OnChartEvent' - do your checks in OnTick.