Posted By: jcl
Zorro 1.41 - 12/16/15 10:13
A new beta version was uploaded to the download page. The new features are a user-defined control panel for strategies, and a single step mode for debugging.
function click(int row,int col) { sound("click.wav"); string Text = panelGet(row,col); if(Text == "Buy") // toggle button between "Buy" and "Sell" panelSet(row,col,"Sell",0,0,0); else if(Text == "Sell") panelSet(row,col,"Buy",0,0,0); else if(Text == "Close All") // push button sellAllTrades(); else if(Text == "Cancel") // back to last saved state panelLoad("Log\\panel.csv"); }
function click(int row,int col) { if(row == 5 && col == 0) // the button's coordinates ... }