Hey coders,
I want to do an order script. Right now I use the numbers 0-5 in the options to determine the type of order. Is it somehow possible to use a pulldown menu in the options from that I can choose OP_BUY, OP_SELL ... ? Sometimes the numbers are confusing because I not always know in a second what for example number 3 or 4 is.
Use OP_BUY / OP_SELL / etc instead of numbers.
then start reading
I do :-)
Hey coders,
I want to do an order script. Right now I use the numbers 0-5 in the options to determine the type of order. Is it somehow possible to use a pulldown menu in the options from that I can choose OP_BUY, OP_SELL ... ? Sometimes the numbers are confusing because I not always know in a second what for example number 3 or 4 is.
Use something like :
enum TYPE_ORDER { BUY, SELL, BUYLIMIT, SELLLIMIT, BUYSTOP, SELLSTOP }; #property show_inputs input TYPE_ORDER operation = BUY; // Order type
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hey coders,
I want to do an order script. Right now I use the numbers 0-5 in the options to determine the type of order. Is it somehow possible to use a pulldown menu in the options from that I can choose OP_BUY, OP_SELL ... ? Sometimes the numbers are confusing because I not always know in a second what for example number 3 or 4 is.