İş Gereklilikleri
Hi,
I have got a problem about lot size volume limitation for opening more hedging orders.
1)EA opens normal and hedging orders lot sizes are calculated by EA properly. It checks total lot size volume, how many normal orders should be opened and what is the risk margin ratio. If I set the risk margin 40% or 90%, the number of opening hedging orders are not changed at this situation. Their lot sizes are changed but the latest hedging order opening condition is looking at to the lot size of the group after risk margin. But if I set the risk margin as 40% I want EA to open more hedging orders with smaller lot sizes. If the total volume is 40 lots but limitation of a group is 8 lots, if there is enough lots, EA should open additional hedging orders.(I guess you will just change the lot size limitation checking codes only.) You may ask that if it is set for 8 lots and 6 hedging orders, you can't open 10 hedging orders but If I set 6 hedging orders, EA may open 10 hedging orders because of balancing of opposite hedging orders. At this situation it opens 10 hedging orders if I set 6 hedging orders, but I need more.
2)EA should open multiple normal orders instead of opening 1 normal order for every time. (Hedging orders are still opening if they are needed, so just normal orders openings will be set for multiple orders automatically)
3)Number of normal orders are set from input menu as manually. EA should allow to open multiple normal orders for per every defined amount of balance automatically. It should be optional as one by one or multiple orders at the same time.
For example If EA saw 100.000$ on the balance, it should allow to open 100.000$/10.000=10 normal orders.
4)I want you to put a stop loss to my latest hedging order only. If EA reached to the limit of lot size volume before stop out but if it looses, it should stop loss. But this should be only if there is no lots size volume. For example 6-10th hedging orders are opened after 30 pips loss. If there is no free lots for 11th order, let’s say 5 pips later loosing 10th hedging order should be closed with 5 pips loss. If you don’t put this condition, it works like normal stop loss(Which is already exist on my EA, I don’t want normal stop loss)
For my new requirements,
The additional input menu parameters can be as follows. The definitions can be changed.
Risk_margin_for_additional_hedging:True/False
Auto_normal_orders:True/False(It will allow to open more then one normal order but it will open
orders one by one if needed)
Auto_multiple_normal_orders:True/False (It will open 2 or more orders every time)
Balance_amount_for_per_normal_order: 10000
Stop_loss_for_last_hedging_order_:True/False
Stop_loss_for_last_hedging_order(Pips):40
All risk margin:85% (There is normal and hedging orders risk margin setting already. This all risk margin will the upper limit of additional hedging orders)
If they are false, existing manual number of orders and risk margin settings will remain the same.
Best regards,