Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

553.Text data calculation -- How to calculate Elder's Force Index (EFI) and related MA, EMA for stock data?

User: editor -- 2010-07-03          << 552  554 >>
Hits: 574
Type: Text data calculation   
Search all Text data calculation examples
Description:
How to calculate Elder's Force Index (EFI) and related MA, EMA for stock data?

formula

Elder Force Index = today's Volume * (today's Close -
yesterday's Close)

Output two columns
EFI MA (10)
EMA (5) of EFI MA(10)
Input Sample:
CODE,DATE,OPEN,HIGH,LOW,CLOSE,VOLUME
AIQ,12/16/09,6.18,6.18,5.99,6.05,16330
AIQ,12/17/09,6.03,6.08,6.00,6.06,74300
AIQ,12/18/09,5.66,5.74,5.14,5.51,1677700
AIQ,12/21/09,5.51,5.60,5.45,5.47,388200
AIQ,12/22/09,5.48,5.72,5.48,5.72,336178
Output Sample:
DATE TIME OPEN HIGH LOW VOLUME CLOSE EFI_MA(10) EFI_MA(10)_EMA(5)
12/16/09 00:00 6.18 6.18 5.99 16330 6.05 0.00 0.00
12/17/09 00:00 6.03 6.08 6.00 74300 6.06 371.50 123.83
12/18/09 00:00 5.66 5.74 5.14 1677700 5.51 -307330.67 -102381.64
12/21/09 00:00 5.51 5.60 5.45 388200 5.47 -234380.00 -131742.98
12/22/09 00:00 5.48 5.72 5.48 336178 5.72 -170695.10 -133347.35
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' window
* set 'replace scope' to 'line'
* in 'search for pattern', enter:

* in 'replace with pattern', enter:


click 'advanced' page:
* in 'run following for each matched unit', enter:


3. click 'Replace', done!


Download Script:  scripts/553.rst.zip

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to calculate Acc/Dis, OBV and related MA values of stock data? (65%)
How to generate Acc/Dist, OBV, MFI and related MA from stock data? (60%)
How to calculate Acc/Dis and corresponding 24 days' MA base on stock data? (60%)
How to generate Money Flow Index (MFI) and Moving Average from stock data? (59%)
How to calculate OBV(On Balance Volume) base on stock data? (56%)
How to calculate Williams %R from stock data? (54%)
How to generate EMA of close of different periods and related STD from stock data? (53%)
How to generate EMA columns and related STD of close value from stock data? (52%)

Check Demo of Text data calculation
Keywords:
elder force index  force index  efi ma 10  index  toc  stock  calculate  efi ma  calculation  columns  search calculate replace  search replace calculate  two text  calculate text data  search and replace line 10  line data  replace line data  10 line