Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4






Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2006, 10:35 PM
Senior Member
 
Join Date: Apr 2006
Posts: 201
scott TTM is on a distinguished road
convert profit trader indicator for me...

Hi, can anyone convert this TS code from profit trader into MQL? It's the "B Line" for buy/sell signals.. ideally if it could be plotted as buy/sell arrows on the charts, that would be excellent.

Here's the indicator...

Code:
{Description of Inputs}{CXOver - This oscillator can be used with a crossover, although it is usually plotted without one.CXOver is the length of the of the moving agerage of the BLine to construct the crossover. The purpose of a crossover is to improve the accuracy of an oscillator that wiggles at tops and bottoms. In most markets the BLine does not often wiggle at tops and bottoms.}  

{SellLine and BuyLine are levels the osc must rise above for an osc downturn to paint a sell setup bar, or drop below for an osc upturn to paint a buy setup bar}


Inputs: CXOver(0),SellLine(70),BuyLine(30),Alrt(0);

Vars: Len1(3),Len2(3),Len3(3),OBOSMY(0),OBOSMYC(0),Sum(0),Cnt(0);

{OBOS}
Sum=0;
For Cnt=0 to Len2-1 begin
    Sum=Sum+_OBOS(CXOver)[Cnt];
End;
If Len2>0 then
   OBOSMY=Sum/Len2
Else
   OBOSMY=0;
Sum=0;
For Cnt=0 to CXOver-1 begin
    Sum=Sum+OBOSMY[Cnt];
End;
If CXOver>0 then
   OBOSMYC=Sum/CXOver
Else
   OBOSMYC=0;
If Alrt<>0 then begin
   If OBOSMY<BuyLine then Alert=True;
   If OBOSMY>SellLine then Alert=True;
End;

{Plots}
If CXOver=0 then 
   Plot1(Round(OBOSMY,1),"BLine");
If CXOver<>0 then begin
   Plot1(Round(OBOSMY,1),"BLine");
   Plot2(Round(OBOSMYC,1),"BLine_CO");
End;
Plot3(SellLine,"BLine_SL");
Plot4(BuyLine,"BLine_BL");
and here is the OBOS function...

Code:
{_OBOS:OBOB}

Inputs: CXOver(NumericSimple);

Vars: Len1(3),Len2(3),Len3(3),OBOS(0),PPr(0),Op(0),HstH(0),LstL(0),Cntr(0),
      DAmt(0),UAmt(0),USm(0),DSm(0),UAvg(0),DAvg(0),MRng(0);

{OB/OS}
Op=O[Len3];
HstH=_Hst(H,Len3);
LstL=_Lst(L,Len3);
PPr=(Op+HstH+LstL+C)/4;
If CurrentBar=1 then begin
   MRng=Len1;
   USm=0;
   DSm=0;  
   For Cntr=0 to MRng-1 begin
       UAmt=PPr[Cntr]-PPr[Cntr+1];
       If (UAmt>=0) then
          DAmt=0
       Else begin
          DAmt=-UAmt;
          UAmt=0;
       End; 
       USm=USm+UAmt;
       DSm=DSm+DAmt;
   End; 
   UAvg=USm/MRng;
   DAvg=DSm/MRng;
End
Else
   If CurrentBar>1 then begin    
      UAmt=PPr[0]-PPr[1];
      IF UAmt>=0 then
         DAmt=0
      Else begin
         DAmt=-UAmt;
         UAmt=0;
      End;
      UAvg=(UAvg[1]*(MRng-1)+UAmt)/MRng;
      DAvg=(DAvg[1]*(MRng-1)+DAmt)/MRng;
   End;
   IF UAvg+DAvg<>0 then
      OBOS=100*UAvg/(UAvg+DAvg)
   Else
      OBOS=0;
   
   _OBOS=OBOS;
all are welcome to use this as a nice filter!

thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 07-02-2006, 05:19 PM
Senior Member
 
Join Date: Apr 2006
Posts: 201
scott TTM is on a distinguished road
anybody want to tackle this? it's supposed to be walter bressert's most statistically accurate indicator, along with the double stochastic which i use on a regular basis for filtering as well...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 07-02-2006, 06:39 PM
Member
 
Join Date: Feb 2006
Location: Czech Republic
Posts: 95
ForexBoss is on a distinguished road
i hope that some coders help..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 07-02-2006, 07:00 PM
elihayun's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 388
elihayun is on a distinguished road
I don't know how but I am sure that if u put an image that shows how this indicator is behaving, it will engorage people to convert it for u
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 07-02-2006, 07:12 PM
Senior Member
 
Join Date: Apr 2006
Posts: 201
scott TTM is on a distinguished road
okay, here's a pic of the buy/sell paintbars in tradestation...

the trade isn't taken until the confirmation is given on the price bar, in the form of the red/blue dot... it enters on the breakout/breakdown of the bar where the indicator plotted.
Attached Images
File Type: jpg bline.jpg (61.8 KB, 568 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 07-02-2006, 09:35 PM
Member
 
Join Date: Feb 2006
Location: Czech Republic
Posts: 95
ForexBoss is on a distinguished road
do you have profit with this indicator?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 07-02-2006, 11:46 PM
Senior Member
 
Join Date: Apr 2006
Posts: 201
scott TTM is on a distinguished road
Quote:
Originally Posted by ForexBoss
do you have profit with this indicator?
why would i want someone to convert an ineffective indicator???

i don't use it as a standalone tool, but rather in conjunction with a few others to make more conservative trades.

so to answer your question, yes!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 02-02-2007, 03:10 PM
Junior Member
 
Join Date: Feb 2007
Posts: 7
uatatunc is on a distinguished road
interesting. but noone can change it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert This Indicator to Expert jsw2006 Indicators - Metatrader 4 8 10-20-2008 01:40 PM
convert this indicator to expert please jsw2006 General Discussion 2 07-08-2006 07:28 PM
please convert this indicator to expert jsw2006 General Discussion 12 06-28-2006 07:04 PM


All times are GMT. The time now is 03:20 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.