The name "IsFirstBarOnChart" does not exist in the current chart
The name "IsLastBarOnChart" does not exist in the current chart
How do I fix this.The code is below:
{
if (IsFirstBarOnChart && Close[1] < Open[1])
{
Then...............
}
if (IsLastBarOnChart && Position.MarketPosition == MarketPosition.Long)
{
Then....
Thanks and your help is much appreciated.

Comment