però devo utilizzare l'editor e aggiungere a mano &&
giusto?
giusto?
//{{EFSWizard_Expressions
//{{EFSWizard_Expression_1
if(getBarState() == BARSTATE_NEWBAR){
if (
vADXDM.getValue(ADXDMStudy.ADX, -1) > vADXDM.getValue(ADXDMStudy.ADX, -3) &&
vADXDM.getValue(ADXDMStudy.PDI, -1) > vADXDM.getValue(ADXDMStudy.NDI, -1) &&
vPriceOsc5_35.getValue(OscStudy.OSC, -1) > vPriceOsc5_35.getValue(OscStudy.OSC, -6) &&
vPriceOsc5_35.getValue(OscStudy.OSC, -1) > 0 &&
Strategy.isLong() == false
) onAction1()
//}}EFSWizard_Expression_1 46074
//{{EFSWizard_Expressions
//{{EFSWizard_Expression_1
if (
getBarState() == BARSTATE_NEWBAR &&
vADXDM.getValue(ADXDMStudy.ADX, -1) > vADXDM.getValue(ADXDMStudy.ADX, -3) &&
vADXDM.getValue(ADXDMStudy.PDI, -1) > vADXDM.getValue(ADXDMStudy.NDI, -1) &&
vPriceOsc5_35.getValue(OscStudy.OSC, -1) > vPriceOsc5_35.getValue(OscStudy.OSC, -6) &&
vPriceOsc5_35.getValue(OscStudy.OSC, -1) > 0 &&
Strategy.isLong() == false
) onAction1()
//}}EFSWizard_Expression_1 46074
function onAction1() {
Strategy.doLong("Long", Strategy.MARKET, Strategy.THISBAR, Strategy.DEFAULT, 0);
setPriceBarColor(Color.RGB(0,0,255));
if (vLastAlert != 1) drawShapeRelative(0, low(), Shape.UPARROW, "", Color.RGB(0,255,0), Shape.TOP);
vLastAlert = 1;
Comment