| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Order type modify (Help request) https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4851 |
Page 1 of 1 |
| Author: | JenniePussier [ Wed Aug 03, 2016 2:33 pm ] |
| Post subject: | Order type modify (Help request) |
Hi, I'm practicing coding and I have already coded some very basic stuff (line color, type, size, extern defaults and inputs etc...) Can someone please help me, I'm stuck understanding how to reverse change the order type to the existing programming code (example: OpenSellStop changes to "open buy limit" OpenBuyStop changes to "open sell limit" Not sure how to go about this... basically trying to open the complete opposite order type that is being used at present //Code Code: Select all |
|
| Author: | McNish [ Thu Aug 04, 2016 6:03 pm ] |
| Post subject: | Order type modify (Help request) |
OrderSend() is the function to send orders. In the order send, replace OP_BUYSTOP with OP_SELLLIMIT and vice versa. am basic too myself but i believe that is correct. Cheers, |
|
| Author: | JenniePussier [ Thu Aug 04, 2016 6:16 pm ] |
| Post subject: | Order type modify (Help request) |
Thx, will give it a try been bugging me all day! |
|
| Author: | JenniePussier [ Thu Aug 04, 2016 6:30 pm ] |
| Post subject: | Order type modify (Help request) |
There might be more to it... Makes logical sense in part but there must be more mods needed, Been trying stuff like find and replace, so for every OP_BUYSTOP find and replace to OP_SELLLIMIT and the inverse applies for OP_SELLSTOP. Made sure to go though the whole code and change everything with no success yet. wonder what it could be? I'm thinking that the symbols >,<,= along with bid and ask as well as the void functions are giving an ordersend error in backtester |
|
| Author: | JenniePussier [ Thu Aug 04, 2016 6:40 pm ] |
| Post subject: | Order type modify (Help request) |
Snippit 1 Code: Select all Code: Select all Code: Select all Code: Select all Code: Select all |
|
| Author: | JenniePussier [ Thu Aug 04, 2016 6:43 pm ] |
| Post subject: | Order type modify (Help request) |
nearly forgot this one Code: Select all |
|
| Author: | tomele [ Thu Aug 04, 2016 6:59 pm ] |
| Post subject: | Order type modify (Help request) |
A lot more. You cant just replace OP_BUYSTOP with OP_SELLLIMIT and leave the remaining unchanged. This is complete nonsense. Please educate yourself about the parameters of the SendOrder function and basic coherences in trading. |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|