Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 10:00:58 +0000



[Programming Help] - how to place limit order before action trigger

View Count: 717

[2018-04-11 04:34:05]
User651753 - Posts: 77
I cant get my head around how to place a limit order into the order book to get ready for a trigger

example
Trying to make a simple Bollinger Band trade system - buying the bottom Bollinger Band and selling the top Bollinger Band.

if the current price is =$100
Top BB = $110
bottom BB = $90

how do I make it so every candle, it will place/replace a buy at the bottom BB ($90) and short top bb ($100) leave it until cancel or replaced?



currently been doing when (lastprice) cross (BB top) = trigger short.
I just want to at any time place both buy and sell order that (* boiling bands) away from current price.

another question, how would I get it to place 1 order at$ 90. and another order at $80
would I need to run a 2nd spreadsheet study with those setting?

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account