Stop Loss?

4 replies

JS17

Customer, bbp_participant, community, 73 replies.

Visit profile

8 years ago #113870

This is the variable which is a positive number

File: var.jpgvar.jpg

 

This is the P&L

File: pl.jpgpl.jpg

 

 

and this is the code

File: code.jpgcode.jpg

 

It does not work, should I leave the SL variable (Max_Loss_in_Currency) value as positive?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 years ago #131080

Hi JS17,

 

I am trying to test this. Will let you know.

0

JS17

Customer, bbp_participant, community, 73 replies.

Visit profile

8 years ago #131081

Thankyou Tomas

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

8 years ago #131096

I would guess you need to change the exit condition from PL >= Max_Loss to PL <= Max_Loss since you want to close position when open P/L is less then -1 * Max_Loss

You can also attach your EA Wizard file in the EA Wizard private forum thread in case this does not solve your problem.

0

JS17

Customer, bbp_participant, community, 73 replies.

Visit profile

8 years ago #131097

Tomas, I will try that and if it does not work then I will do as you say – thankyou

0

Viewing 4 replies - 1 through 4 (of 4 total)