Hello acetrader2,
The best place to start learning more about JavaScript, which is the foundation of EFS, would be our EFS KnowledgeBase. You will find the Core JavaScript Guide in the Core JavaScript 1.5 folder. This guide will teach you everything you need to know about the JavaScript language, syntax and what variables are, etc. Once you have a basic understanding of the language then you should be ready to start using the EFS extensions to access the chart data and performing other EFS tasks such as Alerts. To learn more about a specific EFS function, you will find that information under the EFS 2 Function Reference folder. This will give you the syntax as well as some code examples for each function. The other guide that you will find helpful is the Guide to Developing EFS Indicators, which will also cover more EFS basics. After you have gone through these guides, start trying different things in the EFS editor. As you run into specific obstacles that you don't understand, post your questions and code here and one of the moderators or other members of the forums will help provide some guidance or suggestions.
As for the pop up alert in the formula you previously posted. Start over with a fresh copy of Alex's formula (volatilityentryadvisor(alerts).efs) and just add the Alert.addToList() function with hard coded values like below.
The best place to start learning more about JavaScript, which is the foundation of EFS, would be our EFS KnowledgeBase. You will find the Core JavaScript Guide in the Core JavaScript 1.5 folder. This guide will teach you everything you need to know about the JavaScript language, syntax and what variables are, etc. Once you have a basic understanding of the language then you should be ready to start using the EFS extensions to access the chart data and performing other EFS tasks such as Alerts. To learn more about a specific EFS function, you will find that information under the EFS 2 Function Reference folder. This will give you the syntax as well as some code examples for each function. The other guide that you will find helpful is the Guide to Developing EFS Indicators, which will also cover more EFS basics. After you have gone through these guides, start trying different things in the EFS editor. As you run into specific obstacles that you don't understand, post your questions and code here and one of the moderators or other members of the forums will help provide some guidance or suggestions.
As for the pop up alert in the formula you previously posted. Start over with a fresh copy of Alex's formula (volatilityentryadvisor(alerts).efs) and just add the Alert.addToList() function with hard coded values like below.
PHP Code:
if (nState == BARSTATE_NEWBAR) {
//begin section added by ACM
vColor2=vColor1;
vColor1=vColor;
if(vColor1!=vColor2){
Alert.playSound("ding.wav");
Alert.addToList(getSymbol(), "Alert!", Color.red, Color.black);
}
//end added by ACM
}
Comment