Manual systems discussion - page 14

 

Look at this page as there are few EAs which are openning the trades according to the time.

 

Look at this thread - it is similar with your idea and few versions of the EAs were created. The lastest is this one https://www.mql5.com/en/forum/general

Ans this one is similar with your idea.

Time should be adjastable (selectable in EA's settings as I understand).

By the way, I did not try those EAs ...

 

Hi, I've taken a look and found an EA which does just about what i need it to. I would like to thank you for forwarding me to that post and also like to thank the creator of the EA (WNV_v2). However i just need a little help to modify it. It currently opens trades at the time you ask it to, in this case i have set it to 6am. But it instantly opens trades at the open of that candle. I need it to setup 2 orders from that time you set, a buy which is 100 pips above the open of that candle and a sell which is 100 pips below the open of the candle. I have attached the EA.

Can anybody help me with this please, i would be extremely greatfull.

Thanks in advance.

bh4v1k

Files:
wnv_v2.mq4  8 kb
 

Thanks!

Hi, I've taken a look and found an EA which does just about what i need it to. I would like to thank you for forwarding me to that post and also like to thank the creator of the EA (WNV_v2). However i just need a little help to modify it. It currently opens trades at the time you ask it to, in this case i have set it to 6am. But it instantly opens trades at the open of that candle. I need it to setup 2 orders from that time you set, a buy which is 100 pips above the open of that candle and a sell which is 100 pips below the open of the candle. I have attached the EA.

Can anybody help me with this please, i would be extremely greatfull.

Thanks in advance.

bh4v1k

Files:
wnv_v2.mq4  8 kb
 

Hi, Please ignore my last post i have found what i am looking for. I would like to thank newdigital for helping me find it, you rock! Also i would like to thank igorad for making the EA and of course anybody else who worked on it (TimeBreakExpert).

I've been a member of this forum for quite sometime and everyone here is always helpful. Once i have modified my system to work the best i will for sure start a thread and i hope i can help the community in making many pips!

Thanks again

Regards

bh4v1k

 

Price trender_v3

Try to set this indicator TF60 on chart 15 min.

The result are very very good. I think is more easy to trade in this way.

Thanks Kalenzo!

Files:
 

question

Hello

someone can explain how does this EA work?

interference with some other EA on the same pair or buy/sell manual order??

thanks

#property copyright "Copyright 2006, Taylor Stockwell"

#property link "mailto:stockwet@yahoo.com"

extern int First_Target = 10;

extern int Target_Increment = 6;

extern double Close_Lots = 0.1;

extern int First_Stop = 10;

extern int Stop_Differential = 0;

extern bool Move_Stops = true;

// Global Variables

int ft; //This variable will be incremented by the target increment after every successful take profit.

int fs; // This variable will change as the trade progresses if Move_Stops is true.

int curPipValue; // Checks to see the difference between the open price and current price in pips.

void ManageTrade()

{

// Create another set of variables used in the code.

// These variables provide an abbreviated way of calling variables.

// Mostly, they are more easily written in the code than using the user

// friendly external variables.

int ti=Target_Increment; //This variable will not change.

double cl=Close_Lots; // This variable will not change.

// Additional variables used in the code.

int trange = 0; // Use a range versus a specific pip amount as prices may get jumped.

int totalorders = OrdersTotal(); // Calls a function to get all the open orders.

// Starts initial "for" loop. This loop will go through all the open orders.

// If a target is reached, the script will close a portion of the trade and, possibly, move the stop loss.

for(int j=0; j<totalorders;j++)

{

OrderSelect(j, SELECT_BY_POS, MODE_TRADES);

if(ft == 0) ft = First_Target;

// if(OrderType() == OP_SELL && OrderSymbol()==Symbol())

// {

if(OrderType()==OP_BUY && OrderSymbol()==Symbol())

{

// Get the current pip amount on a buy order.

curPipValue = (Bid - OrderOpenPrice())/Point;

if(ft == 0) ft = First_Target;

trange=ft+5;

// Check if the current pip amount is within the appropriate range

if(curPipValue >= ft-1 && curPipValue <= trange)

{

// First, if target is reached, then take profit.

if(OrderClose(OrderTicket(), cl, Bid, 3, YellowGreen))

{

// Increment First_Target

ft += ti;

Comment(ft);

return(0);

}

}

}

else if(OrderType()==OP_SELL && OrderSymbol()==Symbol())

{

// Get the current pip amount on a sell order.

curPipValue = (OrderOpenPrice()-Ask)/Point;

if(ft == 0) ft = First_Target;

trange=ft+5;

// Check if the current pip amount is within the appropriate range

if(curPipValue >= ft-1 && curPipValue <= trange)

{

if(OrderClose(OrderTicket(), cl, Ask, 3, YellowGreen))

{

// Increment First_Target

ft +=ti;

Comment(ft);

return(0);

}

}

}

}

}

void MoveStops()

{

// Starts initial "for" loop. This loop will go through all the open orders.

// If a target is reached, the script will move the stop loss.

int sd=Stop_Differential; // This variable will not change.

// Additional variables used in the code.

int trange = 0; // Use a range versus a specific pip amount as prices may get jumped.

int totalorders2 = OrdersTotal(); // Calls a function to get all the open orders.

for(int j=0; j<totalorders2;j++)

{

OrderSelect(j, SELECT_BY_POS, MODE_TRADES);

if(fs == 0) fs = First_Stop;

trange=First_Stop+5;

// if(OrderType() == OP_SELL && OrderSymbol()==Symbol())

// {

if(OrderType()==OP_BUY && OrderSymbol()==Symbol())

{

// Get the current pip amount on a buy order.

curPipValue = (Bid - OrderOpenPrice())/Point;

// Check if the current pip amount is within the appropriate range

if(Move_Stops)

{

if(curPipValue >= First_Stop && curPipValue <= trange)

{

OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()+Stop_Differential*Point, OrderTakeProfit(),0,Plum);

}

return(0);

}

}

else if(OrderType()==OP_SELL && OrderSymbol()==Symbol())

{

// Get the current pip amount on a buy order.

curPipValue = (OrderOpenPrice()-Ask)/Point;

// Check if the current pip amount is within the appropriate range

if(Move_Stops)

{

if(curPipValue >= First_Stop && curPipValue <= trange)

{

OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()-Stop_Differential*Point, OrderTakeProfit(),0,Plum);

}

return(0);

}

}

}

}

//+------------------------------------------------------------------+

//| expert initialization function |

//+------------------------------------------------------------------+

int init()

{

//----

MoveStops();

ManageTrade();

//----

return(0);

}

//+------------------------------------------------------------------+

//| expert deinitialization function |

//+------------------------------------------------------------------+

int deinit()

{

//----

ft=0;

//----

return(0);

}

//+------------------------------------------------------------------+

//| expert start function |

//+------------------------------------------------------------------+

int start()

{

MoveStops();

ManageTrade();

}

 

Trailing stop suggestion

Please see attached chart...

The arrows are my indicator entry signals, but the Andrews pitchfork is manually drawn. I've been manually trading with a price target, but would like to take better advantage of the trends that are picked out.

There is a lot of info posted on the forums, but I'm not sure which trailing stop methods are more highly regarded/trusted.

Will you please share your personal experiences with trailing stops?

Any advice is appreciated.

Dan

 
undertitan:
Please see attached chart...

The arrows are my indicator entry signals, but the Andrews pitchfork is manually drawn. I've been manually trading with a price target, but would like to take better advantage of the trends that are picked out.

There is a lot of info posted on the forums, but I'm not sure which trailing stop methods are more highly regarded/trusted.

Will you please share your personal experiences with trailing stops?

Any advice is appreciated.

Dan

My personal opinion, not admin opinion:

There is no such thing as 20 pips trailing stop, 50 pips trailing stop for EURUSD of GBPUSD or whatever.

First is to learn about Stop Loss, then trailing stops. Stops are related with market condition, trader pocket, timeframe, system, so on... and every pair is different.

So, each trade needs from trader to think about the right stop. Maybe last HH or LL, maybe the pivot, maybe a moving average. But which is better, we have H1 trades, or Dailies...

Setting stops is hard than enter on a trade.

 
Linuxser:
Setting stops is hard than enter on a trade.

I agree so much. That's the million dollar question I guess. Thanks for sharing your personal opinion.

I've been doing profit targets, but know that I'm leaving money on the table.

I know my entries are good, and am over 90% accurate on my trades with this system. I don't know how it would be with a trailing stop, or MA stop or whatever... I believe the accuracy would be the same, but with a factor of more pips.

Hope to hear more input.

Thanks again.

Reason: