Please help with simple script.

 

Hi


Can anyone help me to create a simple script ( so i can learn from it and build my EA based on that)

Here is what i need.


1. Open ( 1st order) Euro/USD ( for exampel), pending order for Buy_Stop 15 pips above the current market price.

2. Open (2nd order) the Euro/USD (pending) 50 pips away from Buy order for Sell_Stop.

3. If  First order goes up 30 pips then close both orders.

4. If first order is losing ( 50 pips)- then second order will be executed .

5. If first order goes back up again and second reaches it's starting point then close the second order and place another order 5 pips down on sell_stop.


That's all for now.


I will really apriciate any help and sample script so i can continue to build the full EA.


my email is 123@donothing.us, yk@betterqa.com


I will share the final EA with anyone who can help me to programe it.


I do programming in VB and vb scripts and changing to C++ programming is kinda of ... ( not much luck )


THanks in advance.

Yan

Reason: