{
EntriesPerDirection = 1;
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
{
//Check for open positions
if (Position.MarketPosition == MarketPosition.Flat)
{
//Long Entry
if (RSI(14,3)[0]>50);
{
//Calc Long Entry Price
EnterLongLimit();
SetProfitTarget();
SetStopLoss();
}
if (RSI(14,3)[0]<50);
{
//Enter Short on Market Order
EnterShortLimit();
SetProfitTarget();
SetStopLoss();
}
I am only getting long trades and for some reason it is still entering bids when RSI is below 50
Comment