indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Tools > Software > Metastock

DPonline
Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2011, 11:35 PM
jaberalkwater jaberalkwater is offline
Newbie
 
Join Date: Feb 2011
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
jaberalkwater is on a distinguished road
Default pls help me for this formula

hi everybody ; when i put this formula in metastock as a <New Indicator>
this letter appear to me
< unable to paste clipboard contents because there is not enough space left in the formula . > what can i do ? my version is 10.1
Code:
TREND
BULLISH
ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S)
BEARISH
ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S)
BUY OUT BOTH RSI/STOC
{WYJŒCIE ZE STREF}
( ( ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) )
OR
(ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S) ) )<>1
AND
((Stoch(5,3)>20 AND Ref(Stoch(5,3)<20,-1))
)
AND
((RSI(5)>30 AND Ref(RSI(5)<30,-1))
)
BUY- out - both – STOCH
{WYJŒCIE ZE STREF}
( ( ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) )
OR
(ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S) ) )<>1
AND
((Stoch(5,3)>20 AND Ref(Stoch(5,3)<20,-1))
)
BUY- out - both – RSI

{WYJŒCIE ZE STREF}
( ( ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) )
OR
(ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S) ) )<>1
AND
((RSI(5)>30 AND Ref(RSI(5)<30,-1))
)
SELL - out – both RSI/STOCH
{WYJŒCIE ZE STREF}
( ( ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) )
OR
(ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S) ) )<>1
AND
((Stoch(5,3)<80 AND Ref(Stoch(5,3)>80,-1))
)
AND
((RSI(5)<70 AND Ref(RSI(5)>70,-1))
)
SELL - out - both – STOCH
{WYJŒCIE ZE STREF}
( ( ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) )
OR
(ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S) ) )<>1
AND
((Stoch(5,3)<80 AND Ref(Stoch(5,3)>80,-1))
)

SELL - out - both - RSI
{WYJŒCIE ZE STREF}
( ( ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) )
OR
(ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S) ) )<>1
AND
((RSI(5)<70 AND Ref(RSI(5)>70,-1))
)

UPTREND
(ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) )
AND
Ref((({ To jest brak trendu: ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))>ADX(14) OR ADX(14)<15}
ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S)) OR ((ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) ) ))<>1,-1)


END OF UPTREND
Ref((ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) ) ,-1)
AND
(({ To jest brak trendu: ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))>ADX(14) OR ADX(14)<15}
ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S)) OR ((ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) ) ))<>1

DOWNTREND
(ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S) )
AND
Ref(((
ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S)) OR ((ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) ) ))<>1,-1)


END OF DOWNTREND
Ref((ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 {dodaŠ warunek WZROSTOWY/SPADKOWY}
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S) ) ,-1)
AND
((
ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15
AND MACD()<Mov(MACD(),9,E)
AND Mov(C,5,S)<Mov(C,20,S)) OR ((ValueWhen(2,ADX(14)<>Ref(ADX(14),-1),ADX(14))<ADX(14) AND ADX(14)>=15 AND MACD()>Mov(MACD(),9,E)
AND Mov(C,5,S)>Mov(C,20,S) ) ))<>1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to jaberalkwater For This Useful Post:
  #2 (permalink)  
Old 07-03-2011, 12:25 AM
Ingain Ingain is offline
Regular
 
Join Date: Jan 2010
Posts: 49
Thanks: 28
Thanked 69 Times in 31 Posts
Ingain is on a distinguished roadIngain is on a distinguished road
Default

Indicator builder does not support this formula.

Try to insert it into the Expert Advisor




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Ingain For This Useful Post:
  #3 (permalink)  
Old 07-03-2011, 12:50 AM
Ingain Ingain is offline
Regular
 
Join Date: Jan 2010
Posts: 49
Thanks: 28
Thanked 69 Times in 31 Posts
Ingain is on a distinguished roadIngain is on a distinguished road
Default

Imported in the Expert Advisor works.
Attached Images
File Type: png jaberalkwater.PNG (91.2 KB, 123 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to Ingain For This Useful Post:
  #4 (permalink)  
Old 07-03-2011, 03:23 AM
jaberalkwater jaberalkwater is offline
Newbie
 
Join Date: Feb 2011
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
jaberalkwater is on a distinguished road
Default

Ingain
how do you do that ?
i try but not work !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-03-2011, 03:45 AM
jaberalkwater jaberalkwater is offline
Newbie
 
Join Date: Feb 2011
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
jaberalkwater is on a distinguished road
Default

Ingain
pls if you can convert that formula to Expert Advisor and then put it here for Download.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-03-2011, 05:36 PM
Ingain Ingain is offline
Regular
 
Join Date: Jan 2010
Posts: 49
Thanks: 28
Thanked 69 Times in 31 Posts
Ingain is on a distinguished roadIngain is on a distinguished road
Default

Originally Posted by jaberalkwater View Post
Ingain
pls if you can convert that formula to Expert Advisor and then put it here for Download.

I can not link file.dta, unzip this
Attached Files
File Type: rar MS11EXPT.rar (161 Bytes, 77 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Ingain For This Useful Post:
  #7 (permalink)  
Old 07-03-2011, 05:39 PM
Ingain Ingain is offline
Regular
 
Join Date: Jan 2010
Posts: 49
Thanks: 28
Thanked 69 Times in 31 Posts
Ingain is on a distinguished roadIngain is on a distinguished road
Default



The file is for Metastock 11. I do not know if it is compatible with version 10,

try and let me know
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Ingain For This Useful Post:
  #8 (permalink)  
Old 07-03-2011, 07:34 PM
jaberalkwater jaberalkwater is offline
Newbie
 
Join Date: Feb 2011
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
jaberalkwater is on a distinguished road
Default

My friend
I tried your Expert Advisor but not work maybe need a External Function DLLs and EXPERTS
finally, thank you very mach for your help .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 08-03-2011, 12:33 AM
Ingain Ingain is offline
Regular
 
Join Date: Jan 2010
Posts: 49
Thanks: 28
Thanked 69 Times in 31 Posts
Ingain is on a distinguished roadIngain is on a distinguished road
Default

File tested and working in metastock 10


Attached Files
File Type: rar xzv.rar (3.8 KB, 67 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to Ingain For This Useful Post:
  #10 (permalink)  
Old 08-03-2011, 12:57 AM
The Lord KSA's Avatar
The Lord KSA The Lord KSA is offline
Regular
 
Join Date: Jun 2009
Posts: 70
Thanks: 0
Thanked 78 Times in 24 Posts
The Lord KSA will become famous soon enoughThe Lord KSA will become famous soon enough
Default

Originally Posted by Ingain View Post
File tested and working in metastock 10



can you transfer the fromula to amibroker languages
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

indiTraders - Forum for the Active Indian Trader > Tools > Software > Metastock


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


DPonline

All times are GMT +5.5. The time now is 07:08 AM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2