IndicoreSDK: Target reached, Lua Code Simulate Pause/Restart
Posted: Fri Jul 26, 2013 2:26 pm
Hi everyone,
I need help with Pause/Restart strategy in lua code.
Question: Is there any way to restart my strategy using lua code in Indicore/SDK without using the menu item: TSII -- Charts/Alerts and Trading Automation/Configure strategies and alerts/Pause/Restart whenever limit/profit target is reached?
I have tried check and changeparameters procedures but unfortunately they do not work for me.
The Pseudo code of My strategy has the following structure:
function Init()
CheckParameters()
end
function Prepare(nameonly)
end
function update()
process_data()
if Target_Reached then
BankTheGain()
loop to prepare(false) or any function to simulate Pause/Restart
end
Kindly help.
Forum member,
I need help with Pause/Restart strategy in lua code.
Question: Is there any way to restart my strategy using lua code in Indicore/SDK without using the menu item: TSII -- Charts/Alerts and Trading Automation/Configure strategies and alerts/Pause/Restart whenever limit/profit target is reached?
I have tried check and changeparameters procedures but unfortunately they do not work for me.
The Pseudo code of My strategy has the following structure:
function Init()
CheckParameters()
end
function Prepare(nameonly)
end
function update()
process_data()
if Target_Reached then
BankTheGain()
loop to prepare(false) or any function to simulate Pause/Restart
end
Kindly help.
Forum member,