The option Close - iClose in the TA block should be used to define the trading condition. TA blocks connect to BUY/SELL blocks. This way you define when to buy or sell. When the trading condition is true, the system will BUY or SELL.
See the moving average example in
viewtopic.php?f=3&t=8 or this video tutorial
http://www.molanis.com/index.php?option ... icle&id=67iClose gives you the closing price. If you select CurrentSymbol, CurrentTimeframe, the EA will get the values from the currency graph i.e. if you add the EA to EUR/USD in a 1 Hour graph, you will get the EUR/USD closing price for Timeframe=1H. For 15min add the EA to a 15min graph.
Changing the shift, you can get the closing price for previous bars.
Look here for an explanation of shift
viewtopic.php?f=6&t=13&p=49&hilit=shift#p49The trading conditions are evaluated every tick or every time a candle is completed. The set up is in the START block. Under Execution mode select Completed Bars (this option is selected by default)
>>I want to open a bye trade when the 15min TF candle is closed
Using Completed Bars should do it. But you need to add the trading condition. BUY when the candle is closed and...
When you BUY, you go long. Close Long closes all long positions for the selected symbol.
However take into account that Molanis Strategy Builder does not support hedging. This means that before going long (buying a currency pair) the software will close all short positions. In the same way, before going short (selling a currency pair) the software will close all long positions. As a consequence you do not need to use CLOSELONG and CLOSESHORT to close open positions before opening a new position. The system does that for you.
Molanis Team