Hi yusi and others,
Any help would be highly appreciated. I wish a small code to execute buy orders at market in any programming language. Can nest plus help me do this for now or nest in zerodha. A small program with all hardcoded values would be enough.
I wish to do the following.
start
loop the following every second
if (nifty, CE, 8500, mar31)>= 25 //this I was reading from excel using macro after link to excel.
{
buy (nifty, ce, 8600,mar31) at market //this I wish to do
buy (nifty, pe, 8400,mar31) at market //this I wish to do
exit loop
}
end program
Does nest provide any sample code for the order execution line through VBA or other language.
Any help would be highly appreciated. I wish a small code to execute buy orders at market in any programming language. Can nest plus help me do this for now or nest in zerodha. A small program with all hardcoded values would be enough.
I wish to do the following.
start
loop the following every second
if (nifty, CE, 8500, mar31)>= 25 //this I was reading from excel using macro after link to excel.
{
buy (nifty, ce, 8600,mar31) at market //this I wish to do
buy (nifty, pe, 8400,mar31) at market //this I wish to do
exit loop
}
end program
Does nest provide any sample code for the order execution line through VBA or other language.
In your case, you would have to put a timer loop around the buy (as you have mentioned), and stop the timer once the buy is triggered. The symbol would correspond to the trading symbol used in Nest/NOW. Since Excel does not create static objects, you would need a flag to ensure that CreateObject and SetObjectName is only executed once.
Not the least, I have only passing knowledge in Excel. Others may be able to help better.