I have never studied programming, but I want to write an EA - page 3

 
Maxim Kuznetsov:

Off topic:


Sergei, how did you publish the signal ? is it purely manual trading with handhelds ?

well yeah. i was checking out the features of the site, just seeing how it works

 
Fast235:

that's better :)

I'm also thinking, what's wrong with my chart looking down?
I think something must be broken XD

 
Well, here goes,
i broke something. i used to have a buy order refusing to modify the trailing stop.
and now the stoploss stays away from the market and runs away from it))))
I can't stop laughing. What's wrong?
here is a fragment of trailing stop for buy and sell orders
 
Sergey Lobzankin:

i'm thinking the chart's not looking down too?
Something must be broken XD

Change buy to sell )))

 
Sergey Lobzankin:
Well, there you go,
I messed up. i used to have a buy order that refused to modify trailing stop.
and now the stoploss stays away from the market and runs away from it))))
I can't stop laughing. What's wrong?
here is a fragment of trailing stop for buy and sell orders

There's a button called "Code" to the left of the button with the letters Aa. You'll use it, because it's horrible to put a code in a picture.)

 
Alexey Volchanskiy:

And you change buy to sell )))

Stoploss is frozen now. but trailing does not work

 
Sergey Lobzankin:
Well, here goes,
i broke something. i used to have a buy order refusing to modify the trailing stop.
and now the stoploss stays away from the market and runs away from it))))
I can't stop laughing. What's wrong?
here is a fragment of trailing function for buy and sell orders

What do you want if you have a condition that will always trigger.

if( OrderStopLoss() < Bid+NUM*Point || SL == SL )
 
Konstantin Nikitin:

What do you want if you have a condition that will always work.

For a sell order it's the same thing.
But it's triggered properly there, and the buy one is frantic.

 
Sergey Lobzankin:

for a sell order the same thing.
but it works as it should, but the buy order has gone haywire

Then may I ask you a silly question?
I do not know why the bullshit happens. If at any SL will be TRUE. Why do we need this IF?

 
Konstantin Nikitin:

Then can I ask you a stupid question?
What for the hell do you need it for? If every SL will cause TRUE. Why do we need this IF?

He wrote that he hadn't studied programming. He must have copied it from somewhere.