Topic: Bar Value

Hy,,,

I want to ask, how to set up open order buy/sell with Bar Value.. ?
Example :

1. When Bar > 100 open order
2. and When Fast EMA Crosses Slow SMA

and How about closing position ?

Thanks In Advance...

~暗い影~