Hello
I am having difficulty understanding why my FunctionParameters are not coming up in the >Chart Options/Edit studies.
Can someone perhaps explain please?
Thanks
I am having difficulty understanding why my FunctionParameters are not coming up in the >Chart Options/Edit studies.
Can someone perhaps explain please?
Thanks
PHP Code:
function preMain() {
setStudyTitle("IB Try");
setPriceStudy(true);
setShowCursorLabel(false);
// default parameters
var fp0 = new FunctionParameter("Risk", FunctionParameter.NUMBER);
fp0.setName("Risk");
fp0.setDefault(150);
var fp1 = new FunctionParameter("PSL", FunctionParameter.NUMBER);
fp1.setName("PSL");
fp1.setLowerLimit(1);
fp1.setDefault(20);
var Long
var PSL
var Size
var Risk
var Bid
}
function main(){
var nState = getBarState();
Bid = getMostRecentAsk()
debugPrintln(Bid);
}
Comment