- December 11, 2013
- Posted by: Forex Wiki Team
- Category: Expert Advisor
Name: |
|
||
Author: | gery18 (2013.07.05 15:16) | ||
Downloaded: | 6790 | ||
Download: |
|
||
Collector is a system that buys by growing trend and sells by falling trend; the distance between next trade can be set. The distance is also the stop loss and take profit for the trade. If trade (buy) ends on a stop loss, the system opens another trade but in the opposite direction (sell) with a bigger take profit. The system also opens another new trade. So it stacks trades, and the trader decides when to close all trades. | |||
Here is trailing stop section. Level is a predefined variable to set target pips value. Order has to be opened without TP. Instead, it has to contain only Level of SL. EA will follow the price if order is profitable by whole Level and modify SL if price goes ahead by another one third of Level. // Checking if any order active for (int pos=0; pos < OrdersTotal(); pos++) { if(OrderSelect(pos,SELECT_BY_POS)==true) if (Magic == OrderMagicNumber() && Symbol() == OrderSymbol()) { // trailing SL section // Check if is initial and price is lower than target loss. Start following the price at 100pips distance if (OrderType() == OP_BUY) if (Ask > OrderOpenPrice() + Level*Point*1.3 && Ask > OrderStopLoss() + Level*Point*0.3) OrderModify(OrderTicket(),OrderOpenPrice(),Ask-Level*Point*0.3,0,0,Green); if (OrderType() == OP_SELL) if (Bid < OrderOpenPrice() - Level*Point*1.3 && Bid < OrderStopLoss() - Level*Point*0.3) OrderModify(OrderTicket(),OrderOpenPrice(),Bid+Level*Point*0.3,0,0,Red); return (0); } } 18.09.2013 10:17 Maxiller
well... a martingale system... 16.07.2013 02:41 willgart
Can you please add Trailing Stoploss option in it? Hedge will start if the initial SL or modified TSL hits...... if u can add this TSL, I think it will give more and more profit and save time. and put manual TP and SL level if I select 100 pips TP and 20 pips SL ..... it will be executed for all trades! If we use larger TP with TSL, our chances is there! Considering your kind attention in this regard. thanx! |