Support Board
Date/Time: Wed, 27 Nov 2024 02:27:13 +0000
Post From: Auto Trading after system restart
[2014-07-07 22:09:39] |
Shaharabin - Posts: 28 |
Well, First, thanks for the replay. I kind of got all that already taken care of. Now, What i actually asked is much more complicated, I'm sure it's not supported but if you can add it the future it will be awesome. This is what i meant: I have a custom study i wrote to auto trade. It opens a trade. when the trade is live it monitors the price change. At some point it will move the Stop loss order. all automatically according to the custom study i wrote. The problem is, if for some reason Sierra was shutdown, when it's turned back on, my custom study is restarted and goes back to its initial state (where it looks for an entry) rather then the state it was before the shutdown (the tracking of live position state). That's why i asked if there is a way that sierra can reload with "memory" of the study state. Which i understand now is probably impossible (and i should probably write some code in my study to take care of that state) Assuming there was no solution, i looked for a manual one. My problem was that after the restart, no process was going to update the Live trade's stop loss order. all i need is a way to update an existing stop loss order's price upon a trigger. the trigger is the market reached a certain price. i know sierra has a lot of manual trading functionality, therefor my second question was; can i automate the update of an existing order's (Stop loss) price based on a trigger? (like price destination) Hope this makes sense, Thanks. |