READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Faulty trades

3 replies

Jason R

Subscriber, bbp_participant, community, 15 replies.

Visit profile

11 years ago #114124

I’ve attached an EA that is taking trades when it should not be. It should only buy when close(1) was above the MA and should only sell when close(1) was below the MA. 

the only thing I can think is that the EA is calculating the custom indicator differently than it is being displayed on the chart. 

File: JMA.mq4

0

Jason R

Subscriber, bbp_participant, community, 15 replies.

Visit profile

11 years ago #132417

Anyone? Kind of defeats the purpose of making an EA if I can’t trust it. I tried coding it from scratch using a different indicator. Same result. 

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

11 years ago #132450

Try to edit entry condition to check if “Market position is FLAT” instead of “Not short” …. I tried with flat and it works well

0

Jason R

Subscriber, bbp_participant, community, 15 replies.

Visit profile

11 years ago #132457

Thank-you. I will try that.

But ultimately, the goal is to be able to take multiple trades in the same direction, so “is flat” won’t work in the long run. 

0

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