bill william signal trading - page 2

 
shenlongming:

well i dont know what caused this also,

so i change the code from modifyorder to orderclose, and change the price then now no more error, yeah

and right now i still need guide on coding 1 signal per bar, how to make this? 

You won't learn doing things that way.  When you have a problem you need to understand what is causing it,  why it is causing it and then finally how to resolve it.  Changing the code so you work around it is a bad idea especially of first resort . . .


One signal per bar ?  or one trade per bar ?
 

i cant solve the error 1 which give me no info to solve, right?

and for the error 138 modify stop loss price is not allowed so another way to make it is use the order close 

i want one signal per bar, and then result in trade per signal.

also i need help on how to check my code, it all seems good for me, and if there nothing wrong with code that only mean error is with variable, but how to check it?

 
shenlongming:

i want one signal per bar, and then result in trade per signal.

also i need help on how to check my code, it all seems good for me, and if there nothing wrong with code that only mean error is with variable, but how to check it?


For one signal per bar, see this topic

For checking the value of a variable, use the Print statement

Good Luck

-BB-

 
BarrowBoy:

For one signal per bar, see this topic

For checking the value of a variable, use the Print statement

Good Luck

-BB-

thank you you are a great help
Reason: