All of these will not get hit on the next bar
So here are my questions:
1. How can i store these levels so i can use them later (should i use a dataseries object) because if i submit all these enterLongStops, i am afraid my broker wont accept because of margin...lol
2. how do i determine which price is closest to market so i can submit orders? one may be short and another long
3. how do i tell if order filled so i can remove it from (dataseries?) because each level gets used once
Not sure if I made myself clear, but anyone who is really good at programming this should be a no brainer for ya!
I guess i would ike a framework to store levels
execute orders on those levels
confirm fills
then delete levels
Thanks
Comment