EA Start() function question.

 
hello all,
I have been recently writing Ea for some arbitrage strategies. So my question is:

Is it posible to evaluate start() function more offten than only with new quote arives( ex. when MatketInfo for other currency is changed ) ?

Another question:

I have tried to make two transaction, one for base currency and second other, ie.
t1=OrderSend("aaabbb" );
t2=OrderSend("bbbccc" );

so, when I start Ea for "aaabbb", he only do first one. Is it a Ea limit or my fault?

Thanks,
wawA
 

wawA

From Documentation

start() is the basic function. For experts, it is called after the next tick has income. For custom indicators, it is called at recalculation after the indicator has been attached to the chart, at opening of the client terminal (if the indicator is attached to the chart), and after the next tick has income, as well. For scripts, it is executed immediately after the script has been attached to the chart and initialized. If there is no start() function in the module, the module (expert, script, or custom indicator) cannot be launched.


To keep active between ticks (why the hurry?) use a looping function started inside the start()


OrderSend

Re ...two transaction, one for base currency and second other, ie.
t1=("aaabbb" );
t2=OrderSend("bbbccc" );

so, when I start Ea for "aaabbb", he only do first one. Is it a Ea limit or my fault?

That should work - implies there is some value wrong in the second line - what does the Journal say?

Is "bbbccc" a valid pair on your broker feed?

Or, you could post the code here (in whole or in part)


Good Luck

-BB-

Reason: