thanks for the suggestion, I'll give it a try.
NeoTrader wrote:hi traderduke,Maybe you can make use of the following function...traderduke wrote:What is the code for limiting one trade per candle??
usage:Code: Select all
bool isNewBar() { static int prevTime; bool newBar=false; if(Time[0]!=prevTime) { newBar=true; prevTime=Time[0]; } return(newBar); }
happy weekend,Code: Select all
if ( isNewBar ) { your trading logic; }
NeoTrader
-