EA - Open and Close Positions based on Ticks

 

Hello,

i'm looking for a possibility to open and close positions based ticks und not on OHLC.

The signal for open or close is the simple CrossoverMA (Timeframe: H4) but i want to close and open positions by ticks so that i can close and open earlier and don't have to wait for a complete bar. 

Have anybody a sample code for me how i can implement this tick function to an EA? So that i can also test it with the strategy tester.

I have tried it with the CTrade class and m_result.price but it don't really work for me.

I'm really new in programming EA's so sorry for my "stupid" question.


Thanks! :-)

 
Have you read any article in the Tester section? I think the The Fundamentals of Testing in MetaTrader 5 might be helpful for you.