jsanders / Publications
Forum
How Do I SendOrder 1 for Buy Stop with Limit 1 Tick above High and Stop Loss 1 Tick Below Low
How do I issue the SendOrder command for a Buy Stop with the Limit set 1 tick above the High and the Stop Loss set 1 tick below the Low? I tried the following: res=OrderSend(Symbol(),OP_BUYSTOP,.5,High[1]+MathPow(10,-Digits()),0,Low[1]-MathPow(10,-Digits()),0,"",MAGICMA,0,Blue);
Custom Indicator - Start Function Called Numerous Times - How do I limit the indicator to run only when a new bar comes in?
I have a simple indicator whereby I check for a condition, and then send an email when the condition is hit in the "start" section of the indicator. It works fine, but when I add the indicator to my chart, it seems to get called every 1/3 second or so. My goal is to call the routine only when a new