[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 332
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
Hi all !!! Question is buy with 0.01 lot and sell order below the buy, sell with 0.03 lot how to calculate the profit for the sell so that both positions would close at zero ????
This is useless. The log file is filled in after the MT4 upload or when MT4 has time to do so.
Hi all !!! Hi, I have a Buy order with 0.01 lot and a Sell order, which is lower than the Buy one, and a Sell order with 0.03 lot, how to calculate the profit for a Sell, for both positions to be closed in zero ????
StopLoss bey = (Village price - Order distance - spread)/(1-0.01/0.03)
Take Sell = StopLoss point - spread
Or alternatively do not calculate levels, do not calculate profits, and just do monitoring. If only two orders are planned in the entire terminal, then as soon as the account balance reaches the amount of money in "Funds", give a command to close all orders. If more orders are planned but we need to track the profit only for these two orders, we need to track OrderProfit() of the first order + OrderProfit() of the second order. If this value is more than or equal to zero, we close these two orders. At this, we can also consider the swaps of the orders.
Can you advise how to implement it in code - there is a parameter I need to add it to a file with a periodicity of n minutes...?
Не получается прочитать один из буферов индикатора PerkyAsctrend1.
Please help me to figure this out. I've done this many times with other indicators, always without any problems. This one doesn't work.
I read two buffers: one of them:
double PerkyBuf2=iCustom (NULL,0," PerkyAsctrend1 ",5,250,0,1); - it reads correctly, signal is caught, next line tries to catch:
double PerkyBuf1=iCustom (NULL,0," PerkyAsctrend1 ",5,250,1,1); and all signals of this buffer fly past my EA. I even tried to create an empty Expert Advisor with two Comment() points with results. I cannot get a signal for sell.
Can you help me understand it.
I would like to attach indicator