- กรกฎาคม 30, 2019
- โพสโดย: ทีมงาน Forex Wiki
- หมวดหมู่: ฟรี Forex EA
ป้องกันความเสี่ยง (จากภาษาอังกฤษ hedge - ประกันภัย, รับประกัน) - การกำหนดตำแหน่งฟิวเจอร์สในตลาดหนึ่งเพื่อชดเชยผลกระทบของความเสี่ยงด้านราคาในตำแหน่งฟิวเจอร์สที่เท่ากันแต่ตรงกันข้าม (ตำแหน่งบนฟิวเจอร์ส) ในตลาดอื่น.
วัตถุประสงค์ของการป้องกันความเสี่ยงคือเพื่อป้องกันการเปลี่ยนแปลงในทางลบของราคาในตลาดหุ้น, สินทรัพย์สินค้า, สกุลเงิน, interest rates, และอื่น ๆ.
We are interested in trading currency pairs based on hedging. What is required for this?
1) identify tools that can compensate each other. It is not difficult at all, ตัวอย่างเช่น "ทอง" และ "เงิน".
If you trade in currencies, then the pair is better to choose with high correlation.
You can see the possible options in the table:
2) to determine which of the tools at the moment you need to sell and which one to buy. There are many options for this, one of them is to place the quotes of both instruments in one window and, by the nature of their movement, determine the instrument for buying and selling. The MultiInstrument indicator will help you. You can open orders yourself using the cm_script_Hedge script (in the appendix)
extern string SYMBOL1 = "GBPUSD"; // first character
extern string SYMBOL2 = "EURUSD"; // second character
extern double LOT1 = 0.1; // lot of the first instrument
extern double LOT2 = 0.1; // lot of the second instrument
extern int TYPE1 = OP_BUY; // order type of the first instrument
extern int TYPE2 = OP_SELL; // order type of the second instrument
extern int stoploss = 10, // SL exposure level, ถ้า 0, then SL is not set
takeprofit = 10; // TP exposure level, ถ้า 0, then TP is not exposed
extern int Slippage = 3; // เลื่อนหลุด
ภายนอก int Magic = 777888;
Further action - we wait when both instruments together give us the profit we need and close both orders. You can also use the CloseProfit Expert Advisor for this purpose.
The Expert Advisor closes all orders upon reaching a specified amount of profit or loss in the deposit currency.
Advisor can work only for the pair that is thrown or for all the tools of the account.
ProfitClose = 10; // close all orders when receiving profit
LossClose = 1000; // close all orders when
losing money AllSymbol = false; // consider all the tools or only the one on which the adviser is standing
Naturally for this strategy, AllSymbol = true
Example of work: การซื้อขายที่ประสบความสำเร็จ! Added advisor CloseProfit 2 symbol. It closes all positions on the specified pairs when they achieve a profit or loss specified in the parameters.