Help me write an EA, thanks in advance - page 20

 
Lucas_SPb:
comment out the expression(zigzag_0>zigzag_1 )

didn't think of that, sorry.
 
emonh:

creative and humorous +5 =)
)))))))))))))))That's right!!!!!!!!
 
Please assemble all the necessary parts and send me the indicator, I can't assemble it myself, I'll test it
 
edikjefimov:
Please assemble all the necessary parts and send me the indicator, I can't assemble it myself, I'll test it

I can't do it myself, I'll try it out.
 
emonh:

If you have a Sell or Buy price, you may place a Stop loss, but you know what I mean.


The difference between the orders is 20pp, profit for both sells and bays is 50pp, stops for both sets and bays 70pp, the number of orders can be infinite)) it would be good to do something more secure) for example if I close one of the orders manually the others will close automatically)
 

Hmm, when I'm unauthorised I see your message, when I'm authorised I don't.

I need to be specific about everything point by point.

For example:

1). Open on Sell TP SL 100pp

2). blah blah blah

3). blah blah blah blah etc.

And I kind of plan to not automate it, but to give you something like a script, so that you don't have to bother with the placement and calculation.

 
emonh:

Hmm, when I'm unauthorised I see your message, when I'm authorised I don't.

I need to be specific about everything point by point.

For example:

1). Open on Sell TP SL 100pp

2). blah blah blah

3). blah blah blah blah etc.

and i kinda plan to not automate, but something like a script, so you don't have to bother with setting it up and calculating it.


1) Open Sell -Profit 50pts Stop 70pts Lot Size 0.01

2) Take Profit 50pp stop 70pp lot size 0.02.

3) Take Profit 50 points Stop 70 points lot size 0.04

4) buy profit order 50pts stop 70pts lot size 0.08

5) Sell profit order 50pts stop 70pts lot size 0.16

6) buy profit order 50pts stop 70pts lot size 0.32

7) Take Profit 50pts Stop 70pts lot size 0.62

8) buy position with 50pts profit stop 70pts lot size 1.24

9) take a sell profit 50pts stop 70pts lot size 2.48

10) buy position profit 50pts stop 70pts lot size 4.96

I think that is all you need

 
they should just put one on top of the other, buy on buy and sit on sit
 
edikjefimov:

I don't think we'll need any more.

You shouldn't think so. It will, but _
You have made a mistake in doubling, besides not taking the spread into account.
 
DmitriyN:
You shouldn't think so. It will take, but _
You've made a mistake in doubling, besides not taking the spread into account.

I don't need it because I'm not a rich man )) and I will close my orders by hand without any losses if the margin exceeds the one I am able to withstand.