I am trying to modify a study I downloaded based on stochastics so that it will email me if there is a buy or sell alert. I got the email alert part figured out the only thing i am trying to figure out is how to make esignal confirm that the candle has closed remaining with a buy or sell signal before sending an email.
Im using it within this section:
function goLong(nStop) {
bEntry = true;
vPosition = "long";
vColor = Color.green;
vStop = nStop;
vLong = false;
vShort = false;
drawShapeRelative(0, low() - nSpace, Shape.UPARROW, null,
Color.lime, Shape.BOTTOM, "l"+getValue("rawtime"));
drawTextRelative(0, low() - (1.2*nSpace), "B", Color.lime, null,
Text.BOLD|Text.CENTER|Text.TOP|Text.ONTOP, null, 12, "l"+getValue("rawtime"));
Alert.email(getMostRecentAsk(),["Buy this pair:"]);
return;
}
Any help would be much appreciated
Im using it within this section:
function goLong(nStop) {
bEntry = true;
vPosition = "long";
vColor = Color.green;
vStop = nStop;
vLong = false;
vShort = false;
drawShapeRelative(0, low() - nSpace, Shape.UPARROW, null,
Color.lime, Shape.BOTTOM, "l"+getValue("rawtime"));
drawTextRelative(0, low() - (1.2*nSpace), "B", Color.lime, null,
Text.BOLD|Text.CENTER|Text.TOP|Text.ONTOP, null, 12, "l"+getValue("rawtime"));
Alert.email(getMostRecentAsk(),["Buy this pair:"]);
return;
}
Any help would be much appreciated
Comment