User Defined Variables
Last updated
set @mysize 100$ // set up our variables
set @price -1%
buy @mysize at @price // limit order
=> buy 100$ at -1%
chase sell @mysize to @price // chase all the way to -1%
=> chase sell 100$ to -1%
set @price -0.1% // modify and set more variables
set @price2 -0.5%
set @numorders 10
scale buy @mysize into @numorders from @price to @price2
=> scale buy 500$ into 10 from -0.1% to -0.5%
// Combine 'Constants' with user variables:
buy @mysize
sell @mysize at $entry // sell 100$ at your current entry price