かつて三条(自宅PC)からOANDA(NY4)で1秒間に何回オーダーできるか試験をしました。
Vシリーズでは一億円まで増えると200本近いロット発注が必要になるからです。
今見ると難解ですが当時使ったEAを使えるネットで試したいと思います
ソースは
int d;int x=1;
void OnTick(){if(x==1){
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
d=OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Bid+0.01,Bid-0.01,"Short",1,0,Blue);
if (d==1){x=0;}}}
何をしているのかわかりませんが取りあえず動かしてみましょう
前回自宅PCからOANDAは5回/秒でしたが、今回使えるネットからは12回/秒の発注ができました!!500万円程度は1秒で処理できそうですね
0 件のコメント:
コメントを投稿