How to use ASI indicator MQL5 and how to fix 'struct member undefined'?

 

Good day,

I want to create an EA which uses ASI to filter my trades but i haven't found EA using it. can anyone point where i can get this or better still, a piece of script defining indicator and use to determine trend?

Secondly i am facing error 'Struct member undefined' on the following line of code


    if(Pos.PriceCurrent>=(NormalizeDouble(i*Target_Increment+NormalizeDouble(First_Stop+Pos.PriceOpen,_Digits),_Digits)))


I have included the following at the heading

#include <Trade/Trade.mqh>
#include <Trade/SymbolInfo.mqh>
#include <Trade/DealInfo.mqh>
#include <Trade/PositionInfo.mqh>

CTrade Trade;
CDealInfo Deal;
CSymbolInfo Sym;

CPositionInfo Pos;

Where am i going wrong? P/S i new at coding and am learning and this website has been helpful in getting where i am. many thanks guys and keep the good work up.

regards