logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

3 Pages123>
Options
Go to last post Go to first unread
indexarb  
#1 Posted : Tuesday, March 13, 2012 3:54:57 PM(UTC)
indexarb

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/12/2012(UTC)
Posts: 44

Hi Does anybody have the indicator code for the Bloomberg - Jan Arps Trender indicator ? http://www.bigmiketradin...r-greed-indicator-3.html Excel example here ....
wabbit  
#2 Posted : Tuesday, March 13, 2012 4:36:34 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Where is your attempt to code this indicator? And I, for one, am not signing up with yet another forum just to download one file.


wabbit [:D]

indexarb  
#3 Posted : Wednesday, March 14, 2012 1:38:05 PM(UTC)
indexarb

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/12/2012(UTC)
Posts: 44

Hi Being honest, I have a one month trial of metastock and want to see if this idea works. I have looked at the formula primer but think it will take longer than that to learn. If you are able to help would be much appreciated, if it's not an toon fully understand Thanks Mehul
jjstein  
#4 Posted : Wednesday, March 14, 2012 2:46:26 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
indexarb wrote:
Hi Being honest, I have a one month trial of metastock and want to see if this idea works. I have looked at the formula primer but think it will take longer than that to learn. If you are able to help would be much appreciated, if it's not an toon fully understand Thanks Mehul


Mehul,

If you want to know if it can even be done, you at least would need to supply the Bloomberg description document (as is described in the spreadsheet) DOCS 2051354 for Trender and DOCS 2047911 for Fear & Greed. As noted in the spreadsheet HELP tab, the Excel example is a demonstration only, and does not display correctly.

indexarb  
#5 Posted : Thursday, March 15, 2012 10:22:00 AM(UTC)
indexarb

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/12/2012(UTC)
Posts: 44

Hi Here is the excel file and the bloomberg pdf doc. i have changed the result to long and short istead of support and resistance. thanks in advance for you help mehul
jjstein  
#6 Posted : Thursday, March 15, 2012 11:54:57 AM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Mehul,

Your link is on your C: drive, which won't work for anyone else<g>.

Try MINUS or BOX.

indexarb  
#7 Posted : Friday, March 16, 2012 10:59:04 AM(UTC)
indexarb

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/12/2012(UTC)
Posts: 44

hi here is the link http://minus.com/ml67F1lQ5#1o login if needed indexarb casper12 - password
wabbit  
#8 Posted : Friday, March 16, 2012 4:52:02 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
I'm not holding out much hope of actually seeing what this project is supposed to be before your 30 day trial expires. wabbit [:D]
wabbit  
#9 Posted : Friday, March 16, 2012 6:28:37 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Minus website doesn't work with mobile devices (Safari) with JS off.



wabbit [:D]

jjstein  
#10 Posted : Friday, March 16, 2012 6:43:38 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
wabbit wrote:
Minus website doesn't work with mobile devices (Safari) with JS off.


See if this works: Trender.PDF

wabbit  
#11 Posted : Friday, March 16, 2012 6:52:27 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
The short answer is, yes these can be coded for MS. Whether they "work" to produce profitable trades is another story, and one that will probably take longer than a 30 day trial of MS to resolve.



wabbit [:D]

P.S. JJ, thanks for the working link!
jjstein  
#12 Posted : Friday, March 16, 2012 7:34:18 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
wabbit wrote:
Whether they "work" to produce profitable trades is another story, and one that will probably take longer than a 30 day trial of MS to resolve.


Mehul,

Wabbit makes a good point -- it will take you time to learn the ins & outs of MetaStock, even if you were experienced at evaluating trading systems & methods; ie: Money & Risk Management.

That said, I can understand your wanting to see what it can do, so here is something quick on Trender:

INDICATOR -- Copy & Paste, then drag into main chart window:
Code:

{_Test}
Pds:=Input("Period",2,50,10);
Sensitivity:=Input("Std Dev",.5,5,1);
UseClose:=Input("Use Close",0,1,0);

maMP:=mov(mp(),Pds,e);
maATR:=mov(ATR(1),Pds,e);

ADM:=maMP-maATR/2+Stdev(maATR,Pds)*Sensitivity;

Entry:=if(UseClose,Close>ADM,High>ADM);
Exit:=if(UseClose,ADM>Close,ADM>Low);

{ CLEAN - REMOVE REDUNDANT SIGNAL, 1=Buy -1=Sell }
Signal:=Cum(IsDefined(entry+exit))=1; { Enough data ? }
Signal:=ValueWhen(1,entry-exit<>0 OR Signal,entry); { Current }
entry:=Signal*(Alert(Signal=0,2) OR entry*Cum(entry)=1); { Current or 1st }
exit:=(Signal=0)*(Alert(Signal,2) OR exit*Cum(exit)=1); { Current or 1st }
entry:=(exit=0)*entry; { favor EXIT }
Signal:=Entry-Exit; { Signal }
Season:=ValueWhen(1,Signal<>0,Entry)*2-1; { Signal active }

{ PLOT }
ADM;




EXPERT -- Create & Add the following to HIGHLIGHTS:
Code:

BUY
---
FmlVar("_Test","Season")=1; { Color -- GREEN }



SELL
----
FmlVar("_Test","Season")=-1; { Color -- RED }

This is what the attached EXPERT looks like on the S&P 500 index:
UserPostedImage





SYSTEM TESTER -- Buy & Sell on next day's OPEN price.
Code:

BUY ORDER
---------
dummy:=OPT1;
ref(FmlVar("_Test","Signal"),-1)=+1;



SELL ORDER
----------
ref(FmlVar("_Test","Signal"),-1)=-1;


jjstein  
#13 Posted : Friday, March 16, 2012 7:37:16 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
wabbit wrote:
P.S. JJ, thanks for the working link!

Playing with an iPad, I presume?

wabbit  
#14 Posted : Friday, March 16, 2012 8:31:39 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
iPhone4. (SWMBO has the iPhone 4S)


wabbit [:D]

jjstein  
#15 Posted : Friday, March 16, 2012 10:09:43 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
wabbit wrote:
iPhone4.


Try me on FaceTime sometime (my usual email address); I'd be curious if it works decently, from halfway around the world.

indexarb  
#16 Posted : Saturday, March 17, 2012 3:44:20 AM(UTC)
indexarb

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/12/2012(UTC)
Posts: 44

Hi Thanks for your help to date, very steep learning curve !!! anyway think i managed to copy and paste the formula as an indicator and when i drag into the cahrt i get a red line over my chart. however when i try and create the expert or system tester i get stuck i create a new expert advisor and give it a name, i have given it the same name as the indicator "A1" when i the copy and paste the code into the highlights i get a message that says NO INDICATOR NAMES IN THE INDICATOR BUILDER CONTAIN THAT NAME also get the same problem in the system tester. I have taken screenshots ... s1 s2 s3 http://min.us/mbrxsqTgrR thanks mehul
jjstein  
#17 Posted : Saturday, March 17, 2012 4:40:00 AM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
indexarb wrote:
...i get a message that says NO INDICATOR NAMES IN THE INDICATOR BUILDER CONTAIN THAT NAME...


That's because you changed the Indicator name from "_Test" to "A1"; therefore you must change anything that uses "_Test" to "A1":

Code:

BUY
---
FmlVar("A1","Season")=1; { Color -- GREEN }


SELL
----
FmlVar("A1","Season")=-1; { Color -- RED }


Since you've come this far, I think you're smart enough to make the change to the System Tester code by yourself...

indexarb  
#18 Posted : Saturday, March 17, 2012 5:46:44 AM(UTC)
indexarb

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/12/2012(UTC)
Posts: 44

Great !!!!!! two final questions ... the optimiser, when i do the system test, shoud i keep it or remove it as it asks for min / max values ... what do you suggest if i keep min 1 max 100? also , is there any way to have a inner chart window, with just a -1 if short and 1 if long i do not necessarly need the chart in green for long and red for short, would like the -1 + 1 in a new inner window more thanks again mehul
jjstein  
#19 Posted : Saturday, March 17, 2012 10:09:28 AM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
indexarb wrote:
the optimiser, when i do the system test, shoud i keep it or remove it as it asks for min / max values ... what do you suggest if i keep min 1 max 100?


Either set both the min & max to 1, or remove the "dummy" variable -- it is only there to give an extra chart with overall results.


indexarb wrote:
also , is there any way to have a inner chart window, with just a -1 if short and 1 if long i do not necessarly need the chart in green for long and red for short, would like the -1 + 1 in a new inner window more thanks again mehul


Drag this down to the X-AXIS; when it changes from a sqiggly-line to a squiggly-line with a mini-window, release the mouse button.

Code:

_Test Signal

FmlVar("_Test","Signal");



indexarb  
#20 Posted : Saturday, March 17, 2012 11:32:45 AM(UTC)
indexarb

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/12/2012(UTC)
Posts: 44

Hi Where would this new code go for the 1 or -1 signal? I have dragged the current indicator code to the x axis and get the same value as i did when i dragged it onto the chart. I basically would like a -1 if im supposed to be short or a 1 if long OR ideally an inner window, that shows the current value of the chart (eur currency or example) + or - the value of the indicator. thanks again mehul
Users browsing this topic
Guest (Hidden)
3 Pages123>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.