DALE!! BAROMETER FOR ANY SINGLE LINE INDICATOR: ! Coded by Rich Denning 7/26/05 !! EXAMPLE USING 14 DAY SIMPLE MOVING AVERAGE AS INDICATOR SMA14 is simpleavg([close],14). !! ANY SINGLE LINE INDICATOR CAN BE SUBSTITUTED BY CHANGING THE DEFINITION OF "INDICATOR": Indicator is SMA14. !! Example of custom coded indicator !!! Indicator is [ADX]. !! Example of using a built-in indicator !! Barometer is GREEN UP ARROW on YELLOW !! Single Line Indicator. The short term trend (5 period slope) !! is increasing or is level and the !! long term trend (10 period slope) is decreasing. GY if slope2(Indicator, 10) < 0 and slope2(Indicator, 5) >= 0. !! Barometer is RED DOWN ARROW on YELLOW !! Single Line Indicator. The short term trend (5 period slope) !! is decreasing and the !! long term trend (10 period slope) is increasing or is level. RY if slope2(Indicator, 10) >= 0 and slope2(Indicator, 5) < 0. !! Barometer is SOLID GREEN. !! One Line Indicator. Both the short (5 period slope) and long !! (10 period slope) term trends are increasing !! or are level. GG if (slope2(Indicator, 10) > 0 and slope2(Indicator, 5) > 0) or (slope2(Indicator, 10) = 0 and slope2(Indicator, 5) = 0 and valrule(slope2(Indicator, 10) > 0 and slope2(Indicator, 5) > 0,1)). !! Barometer is SOLID RED. !! One Line Indicator. Both the short (5 period slope) and long !! (10 period slope) term trends are decreasing !! or are level. RR if (slope2(Indicator, 10) < 0 and slope2(Indicator, 5) < 0) or (slope2(Indicator, 10) = 0 and slope2(Indicator, 5) = 0 and valrule(slope2(Indicator, 10) < 0 and slope2(Indicator, 5) < 0,1)). Barometer is iff(RR,-20,iff(RY,-10,iff(GY,10,iff(GG,20,"Error")))). Barometer1 is valresult(Barometer,1). !! EXAMPLE OF USING BARAMETER READING FOR TRADING / ALERT RULES: UpAlert1 if valrule(RR or RY,1) and (GG or GY). DnAlert2 if valrule(GG or GY,1) and (RR or RY). ListAll if 1. Rule Library CCodeViewUpAlert1 CReportViewSymbol< BarometerO Barometer1Q IndicatorOCloseO Volume ESAUVolatility MAWTEVA AA A*.G5zADnAlert2Symbol< BarometerO Barometer1Q IndicatorOCloseO Volume ESAUVolatility MAWCECO AkBףBoFRBGNTX A"6AHAJF1APETM AA= ApCF`AWFMI AB)\B%FAGGSymbol< BarometerO Barometer1Q IndicatorOCloseO Volume ESAUVolatility MAWJAAPLAAP"Bq=/BIH~ BADBEA AA33A}GZAALTRAAAq=AArGAAMATAAvApAоiHGLAAMGNAAB#BPGANTAP}AzA*GZANVDAA AleGچAPDCOh'B\'BI4FB^APIXRc"-Bp,BBF?BRIMM:BBwGuBROST4AGA]CFASBUXNBIBuFJASEBL A A0GcAVRSNLAQAN]GBXRAYQBףQB>E{TAYHOO c BffBJH=zAListAllSymbol< BarometerO Barometer1Q IndicatorOCloseO Volume ESAUVolatility MAWaAAPLAAP"Bq=/BIH~ BADBEA AA33A}GZAALTRAAAq=AArGAAMATAAvApAоiHGLAAMGNAAB#BPGAMLNMAAApA8GBoBMRVLAA%B+B|F0?AMSFTAAAA#IDCAMXIMAA%BR*B4GANTAP}AzA*GZANVDAA AleGچANVLSAAA{A[GOeANXTLAABGB*G΁AORCLAAw\Aף\Ad5HFAPAYXAAr Bף B1F5BPCARAABǔB:jFXSAPDCOh'B\'BI4FB^APETM AA= ApCF`APIXRc"-Bp,BBF?BPTENAAAQAFAQCOMAAB(B,HayAQLGCAAjBAFiAQQQQAA7B{BVI 8ARIMM:BBwGuBROST4AGA]CFARYAAYAAK=BE{TAYHOO c BffBJH=zASummary CCrossTabRptSymbol< Alert1 - 1H Alert2 - 4HGG - 74?GY - 18RY - 48RR - 18? ListAll - 97LaAPOLCMCSADISHESRXJNPRLNCRMERQNTAPNVDAPDCOPIXRRIMMROSTSBUXSEBLVRSNXRAYYHOOCECOGNTXPETMWFMITEVAAAPLADBEALTRAMATAMGNAMZNAPCCATYTBBBYBEASBIIBBMETBRCMCDWCCEPHCHIRCHKPCHRWCMVTCOSTCPWRCSCOCTASCTXSDELLDLTREBAYERTSEXPDFASTFISVFLEXGENZGILDGRMNHSICIACIINTCINTUISILIVGNJDSUKLACLAMRLLTCLRCXLVLTMCHPMEDIMLNMMRVLMSFTMXIMNVLSNXTLORCLPAYXPCARPTENQCOMQLGCQQQQRYAAYSANMSHLDSIALSNDKSNPSSPLSSSCCSUNWSYMCTLABXLNXnas10000:00