Reply

Incremental magic numbers

1 replies

RadarTradar

Subscriber, bbp_participant, community, 1 replies.

Visit profile

5 years ago #236142

Greetings,

I am pursuing a simple program that would add positions at certain intervals as long as conditions remained favorable.

One problem is that for each new position the program would need to assign a new magic number.

Now, given that Long positions MagicLong numbers are < 2000 and Shorts MagicShort are > 2000 I would like a routine that creates a MagicLong number by incrementing the original variable while preserving it in an array so that all Long positions can eventually be closed if Short conditions are created. The reverse for Short positions.

Otherwise we need to create a new rule for each new entry with it’s own magic number. I’m just looking to see if there is a way to automate that.

Thanks for any suggestions!

RadarTradar

0

RadarTradar

Subscriber, bbp_participant, community, 1 replies.

Visit profile

5 years ago #236143

May I also add that it would be wonderful to be able to cancel all positions and orders >2000 or <2000 so as to take care of all Long or Short positions/orders.

Is this a feature request? 😉

0

Viewing 1 replies (of 1 total)