| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| UseZeljko - Checking For Open BUYSTOP & LIMIT Orders https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4959 |
Page 1 of 1 |
| Author: | theforexedge [ Thu Oct 20, 2016 8:08 am ] |
| Post subject: | UseZeljko - Checking For Open BUYSTOP & LIMIT Orders |
Hi After the GBP flash crash earlier this month i've been looking at strategies to limit currency pairs when markets are extended and have revisited UseZeljko in Steves shellcode EA.. As my coding is quite limited i'm hoping someone could let me know if i would need to add type ==OP_BUYSTOP && type == OP_BUYLIMIT if i want to check to see if pending orders are currently open in other pairs as I noticed the Current call is: Code: Select all Code: Select all Do I need to add to check for open Limit Orders? Code: Select all Code: Select all |
|
| Author: | SteveHopwood [ Sat Oct 22, 2016 9:25 pm ] |
| Post subject: | UseZeljko - Checking For Open BUYSTOP & LIMIT Orders |
Yes, you would. Make sure you have the latest BobStuff shell so we are talking about the same line numbers, because you need a teensy bit of additional code. Line 1513 is: if (type == OP_BUY || type == OP_BUYSTOP) It needs to be: if (type == OP_BUY || type == OP_BUYSTOP || type == OP_BUYLIMIT) the 'else' at 1518 takes care of all the SELL/STOP/LIMIT order types. Great to see you getting your hands dirty Jason. |
|
| Author: | theforexedge [ Sun Oct 23, 2016 1:00 pm ] |
| Post subject: | UseZeljko - Checking For Open BUYSTOP & LIMIT Orders |
Steve Thank you very much for replying and its always good to get some clarification when changing / adding stuff Anyway the other issue I've been having is using Code: Select all Code: Select all Code: Select all Anyway I've cut and pasted the existing CloseAllTrades code so it now only looks to close the pending orders and again just wanted to ask if my logic is OK... Code: Select all |
|
| Author: | SteveHopwood [ Sun Oct 23, 2016 4:30 pm ] |
| Post subject: | UseZeljko - Checking For Open BUYSTOP & LIMIT Orders |
Looks ok to me. Try it out when the markets open and we can sort out any glitches from there. |
|
| Author: | theforexedge [ Sun Oct 23, 2016 10:20 pm ] |
| Post subject: | UseZeljko - Checking For Open BUYSTOP & LIMIT Orders |
Thanks Steve... I will test this week and let you know if I need any further help.. Have a great week.. Jason |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|