Alex ciao
ho fatto con il wizard il mio Price flip.Il tutto non funziona.... dovrebbe colorare la barra di maroon e alla prima andare long alla seconda e colorare la barra di Gold e andare short alla seconda (ps. come mai non c'è open, mid, hlc/3 etc...?)
invece disegna la porcheria ceh vedi in accluso . puoi dirmi cosa non va? e perche le barre dibventano bianche?
Wizard_Description
//
// This formula was generated by the Alert Wizard
//
//}}EFSWizard_Description 7532
//{{EFSWizard_Declarations
var vLastAlert = -1;
//}}EFSWizard_Declarations 2482
function preMain() {
/**
* This function is called only once, before any of the bars are loaded.
* Place any study or EFS configuration commands here.
*/
//{{EFSWizard_PreMain
setPriceStudy(true);
setStudyTitle("Price Flip");
//}}EFSWizard_PreMain 6513
}
function main() {
/**
* The main() function is called once per bar on all previous bars, once per
* each incoming completed bar, and if you don't have 'setComputeOnClose(true)'
* in your preMain(), it is also called on every tick.
*/
//{{EFSWizard_Expressions
//{{EFSWizard_Expression_1
if (
close() >= close(-4) &&
close() <= close(-4)
) onAction1();
//}}EFSWizard_Expression_1 12072
//}}EFSWizard_Expressions 21693
//{{EFSWizard_Return
return null;
//}}EFSWizard_Return 2256
}
function postMain() {
/**
* The postMain() function is called only once, when the EFS is no longer used for
* the current symbol (ie, symbol change, chart closing, or application shutdown).
*/
}
//{{EFSWizard_Actions
//{{EFSWizard_Action_1
function onAction1() {
setPriceBarColor(Color.RGB(155,0,0));
setPriceBarColor(Color.RGB(128,128,0));
if (vLastAlert != 1) Strategy.doLong("", Strategy.CLOSE, Strategy.NEXTBAR, Strategy.DEFAULT, 0);
if (vLastAlert != 1) Strategy.doShort("", Strategy.CLOSE, Strategy.NEXTBAR, Strategy.DEFAULT, 0);
vLastAlert = 1;
}
//}}EFSWizard_Action_1 40352
//}}EFSWizard_Actions 53244
ho fatto con il wizard il mio Price flip.Il tutto non funziona.... dovrebbe colorare la barra di maroon e alla prima andare long alla seconda e colorare la barra di Gold e andare short alla seconda (ps. come mai non c'è open, mid, hlc/3 etc...?)
invece disegna la porcheria ceh vedi in accluso . puoi dirmi cosa non va? e perche le barre dibventano bianche?
Wizard_Description
//
// This formula was generated by the Alert Wizard
//
//}}EFSWizard_Description 7532
//{{EFSWizard_Declarations
var vLastAlert = -1;
//}}EFSWizard_Declarations 2482
function preMain() {
/**
* This function is called only once, before any of the bars are loaded.
* Place any study or EFS configuration commands here.
*/
//{{EFSWizard_PreMain
setPriceStudy(true);
setStudyTitle("Price Flip");
//}}EFSWizard_PreMain 6513
}
function main() {
/**
* The main() function is called once per bar on all previous bars, once per
* each incoming completed bar, and if you don't have 'setComputeOnClose(true)'
* in your preMain(), it is also called on every tick.
*/
//{{EFSWizard_Expressions
//{{EFSWizard_Expression_1
if (
close() >= close(-4) &&
close() <= close(-4)
) onAction1();
//}}EFSWizard_Expression_1 12072
//}}EFSWizard_Expressions 21693
//{{EFSWizard_Return
return null;
//}}EFSWizard_Return 2256
}
function postMain() {
/**
* The postMain() function is called only once, when the EFS is no longer used for
* the current symbol (ie, symbol change, chart closing, or application shutdown).
*/
}
//{{EFSWizard_Actions
//{{EFSWizard_Action_1
function onAction1() {
setPriceBarColor(Color.RGB(155,0,0));
setPriceBarColor(Color.RGB(128,128,0));
if (vLastAlert != 1) Strategy.doLong("", Strategy.CLOSE, Strategy.NEXTBAR, Strategy.DEFAULT, 0);
if (vLastAlert != 1) Strategy.doShort("", Strategy.CLOSE, Strategy.NEXTBAR, Strategy.DEFAULT, 0);
vLastAlert = 1;
}
//}}EFSWizard_Action_1 40352
//}}EFSWizard_Actions 53244
Comment