Reply

Pips away problem

10 replies

SimonO

Subscriber, bbp_participant, customer, community, 10 replies.

Visit profile

2 weeks ago #274343

Hello

I tried to make a strategy that would buy on every bar if current open is n-pips away from previous open orders. However, my template is not working as intended, as I believe that there is some problem with open order price calculation.
I’m adding all the photos and the strategy template.
Any help would be greatly appreciated.

Attachments:
You must be logged in to view attached files.

0

SimonO

Subscriber, bbp_participant, customer, community, 10 replies.

Visit profile

2 weeks ago #274344

I believe that it only checks the order open price of the first order so when the price is outside the n-pip value it doesn’t check the distance from the other orders..

0

SimonO

Subscriber, bbp_participant, customer, community, 10 replies.

Visit profile

2 weeks ago #274384

Any help would be greatly appreciated.

0

Bee trader

Subscriber, bbp_participant, customer, community, 28 replies.

Visit profile

2 weeks ago #274387

Hi,

I am trying to follow what you are trying to do here:

<span style=”color: #404048; font-family: ‘open sans’, -apple-system, blinkmacsystemfont, ‘segoe ui’, roboto, helvetica, arial, sans-serif; font-size: 15px;”>unless if I am mistaken, you can openorderprice like that since you want to use previous open order price.</span>

Why don’t you have it as a STOP order and set your open price as Open[0]+X pips?

0

SimonO

Subscriber, bbp_participant, customer, community, 10 replies.

Visit profile

2 weeks ago #274395

I don’t really understand what you mean. I’m opening multiple market orders, but new market order should only be opened if it’s a n-pips away from order market orders. It should honestly be simple in principle, but I don’t know why it doesn’t work. As I’ve said, it might be because it doesn’t identify ALL open positions, only the first one… But I don’t know how to fix it.

0

Bee trader

Subscriber, bbp_participant, customer, community, 28 replies.

Visit profile

2 weeks ago #274396

what you are trying to do is too complex for Algo Wizard. You might be able to develop a java extension.

0

SimonO

Subscriber, bbp_participant, customer, community, 10 replies.

Visit profile

2 weeks ago #274397

I honestly don’t believe it’s too complicated as it literally just needs to check if there is any nearby positions. It basically just needs to identify different orders, which I think is well in the capabilities of algowizard. The way I put it should work in principle, that’s why I am asking for help, as it does not.

0

SimonO

Subscriber, bbp_participant, customer, community, 10 replies.

Visit profile

2 weeks ago #274432

Ok, so this time I basically copied how fxDreema does this no positions nearby function, but of course, it still doesn’t work…

Attachments:
You must be logged in to view attached files.

0

tomas262

Administrator, sq-ultimate, 738 replies.

Visit profile

1 week ago #274447

Hello,
you can attach your latest version, I will check and try to modify

0

SimonO

Subscriber, bbp_participant, customer, community, 10 replies.

Visit profile

1 week ago #274461

Hello,

thank you for response.

I added my dummy example. I made it so that it can at least identify the last order, but I can’t identify ALL orders at once. Also, I have problems with the condition positions<maxPositions. EA is entering more positions than allowed but I don’t know what’s the problem.

 

Thank you for your help.

Attachments:
You must be logged in to view attached files.

0

tomas262

Administrator, sq-ultimate, 738 replies.

Visit profile

2 days ago #274618

Hello,
this could do what you want. Check the modified example attached

Attachments:
You must be logged in to view attached files.

0

Viewing 11 posts - 1 through 11 (of 11 total)