Collector_v.1.0

0
(0)
Name:
Collector_v.1.0
Author: gery18 (2013.07.05 15:16)
Downloaded: 6790
Download:
Collector_v.1.0 1
 Collector_v.1.0.zip (366.6 Kb)
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.
3 comments  To post a new comment, please log in or register

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!

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.