Reply

how to create condition to close trade only when break even + X pips

5 replies

smitty

Subscriber, bbp_participant, community, 3 replies.

Visit profile

6 years ago #117773

i am looking for something simple but am new so could not figure out how to do this.

 

I want to close an open trade based on an indictor reaching a certain level. I can figure out that part but I only want the trade to close IF the trade is break even PLUS X pips.

 

I already have the indicator part done, I have it closing when the indicator reaches the level that I want, but there are other situations where it the indictor is not going to close the trade because the time has expired and now I want the trade to close, but only if it is break even. but of course with swaps and commissions I need to add some more to it to make sure it is not closing at loss. so I need the trade to be either break even plus X pips or I need to specify the actual profit in pips for the open trade.

 

how can I do that? 

 

thanks

 

smitty

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #144763

Hello,

 

ok, I will prepare the example EA for this

0

smitty

Subscriber, bbp_participant, community, 3 replies.

Visit profile

6 years ago #144792

thanks 

 

also my time filter is not working but i cannot see why anywhere online or any other examples of how to do it?    

 

if bid crosses below BB band (20,0,2)

and 

(( timecurrent > get time(1,0,0)

and

time current < get time(4,59,59)    )

or

(timecurrent > gettone(17,0,0)

and

time current<gettime(23,59,0)   ))

0

smitty

Subscriber, bbp_participant, community, 3 replies.

Visit profile

6 years ago #144811

i have solved the time issues. but still don’t have a way to create a break even PLUS 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #144812

Ok, will make an example on this and post

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #144848

Hello,

 

you can setup breakeven + x pips as shown in the sample attached. Let me know if any questions

0

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