Forex
Google

Go Back   Forex Trading > Programming > Metatrader Programming
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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
 
LinkBack Thread Tools Display Modes
  #101 (permalink)  
Old 06-12-2006, 05:05 AM
viktoriwan viktoriwan is offline
Junior Member
 
Join Date: May 2006
Posts: 21
viktoriwan is on a distinguished road
can some show me the correct place/thread/forum to ask...?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #102 (permalink)  
Old 06-12-2006, 09:55 AM
igorad's Avatar
igorad igorad is online now
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 783
igorad is on a distinguished road
Hi,
can you give us more code (inputs and so on), because I think this formula has a mistake?
__________________
Let's improve trade skills together
http://finance.groups.yahoo.com/group/TrendLaboratory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #103 (permalink)  
Old 06-12-2006, 03:53 PM
Beluck's Avatar
Beluck Beluck is offline
Senior Member
 
Join Date: Oct 2005
Posts: 196
Beluck has much to be proud ofBeluck has much to be proud ofBeluck has much to be proud ofBeluck has much to be proud ofBeluck has much to be proud ofBeluck has much to be proud ofBeluck has much to be proud ofBeluck has much to be proud of
metastick formula is syntatically correct, but it is not that easy to make the same mq4 code.
first you have to make equivalent percent zigzag and only then apply MA on it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #104 (permalink)  
Old 06-12-2006, 05:04 PM
viktoriwan viktoriwan is offline
Junior Member
 
Join Date: May 2006
Posts: 21
viktoriwan is on a distinguished road
Quote:
Originally Posted by Beluck
metastick formula is syntatically correct, but it is not that easy to make the same mq4 code.
first you have to make equivalent percent zigzag and only then apply MA on it.
it goes something like this :
if(mov(zig(4,c),4,e) - mov(zig(9,c),7,e)

Last edited by viktoriwan : 06-12-2006 at 05:20 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #105 (permalink)  
Old 06-13-2006, 01:33 AM
Jonathan You Jonathan You is offline
Member
 
Join Date: Nov 2005
Posts: 25
Jonathan You is on a distinguished road
Smile Translate Metastock code into MT4

Hello all, I would like to ask your help to translate this piece of code into MQ4:

Ref(Mov(CLOSE,CY1,S),CY1/2)+M1*ATR(CY1);


this code is a section of Hurst Channel for Metastock platform, now I try to translate to MT4 language, please help.

thanks a lot

Jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #106 (permalink)  
Old 06-14-2006, 03:09 PM
skorcht skorcht is offline
Member
 
Join Date: May 2006
Posts: 30
skorcht is an unknown quantity at this point
pretty easy MT4 indicator code question

Maybe this will get more views in this section

i have two simple questions i think..
how can i make the heiken ashi Candles be thickness of 5 by default instead of 3? everytime i bring up a new chart they go back to 3.

Also, how can i make a mark above or below the candle depending on an RSI indicator of a certain period (being above or below a constant)

I understand some about programming but don't know the syntax of this...so act like i know nothing

i did just use the Indicator Wizard in MT4..that gets a good start.

PS that expert advisor builder is NICE, is there and INDICATOR builder too? that would be amazing

SKor

Last edited by skorcht : 06-14-2006 at 03:46 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #107 (permalink)  
Old 06-14-2006, 06:12 PM
mwbro's Avatar
mwbro mwbro is offline
Member
 
Join Date: Feb 2006
Posts: 87
mwbro is on a distinguished road
hi,

open the code and copy the following below:


SetIndexStyle(0,DRAW_HISTOGRAM, 0, 5, Red);
SetIndexBuffer(0, ExtMapBuffer1);
SetIndexStyle(1,DRAW_HISTOGRAM, 0, 5, DodgerBlue);
SetIndexBuffer(1, ExtMapBuffer2);
SetIndexStyle(2,DRAW_HISTOGRAM, 0, 5, Red);
SetIndexBuffer(2, ExtMapBuffer3);
SetIndexStyle(3,DRAW_HISTOGRAM, 0, 5, DodgerBlue);
SetIndexBuffer(3, ExtMapBuffer4);


the above should accomplish your goal
let me know

mwbro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #108 (permalink)  
Old 06-15-2006, 02:42 AM
skorcht skorcht is offline
Member
 
Join Date: May 2006
Posts: 30
skorcht is an unknown quantity at this point
I assume this is for the HEIKEN issue..
I'll try it out

Thanks FROZONE

what's crazy is that I assumed that the 5's were the default thickness in the original code (they were 1's and 3's)
so i changed the 3's to 5's and restarted and it didn't work for some reason.

It Works now.
Thanks

Now i get the arrow to pop up based on RSI and i'll be happy
(have to color those candles based on another value but that's a later step)

Last edited by skorcht : 06-15-2006 at 02:50 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #109 (permalink)  
Old 06-16-2006, 03:23 AM
goover goover is offline
Member
 
Join Date: Feb 2006
Posts: 43
goover is on a distinguished road
Tradestation time filter code explanation help

Hi,

I am looking at a tradestation time filter code and since i never use tradestation before, i am not very sure about it. Anyone who has experienced with it can clarify it?

inputs:
time_offset(0), {EST Time}
begin_time(800),
end_time(1600);

if time >=begin_time + time_offset and time <=end_time + time_offset then begin


Is this time filter code saying trade will be initiated from 8.00 am - 4.00 pm EST time?

Thanks for helping.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #110 (permalink)  
Old 06-16-2006, 03:29 AM
Maji Maji is offline
Senior Member
 
Join Date: Mar 2006
Posts: 787
Maji is on a distinguished road
The offset number of -100 is to be used when the data is in say Central Stand. You have to figure that one out.

As for the logic, it says if it is between 800 hrs and 1600 hrs, then begin to do something... like monitor for a certain set up.

Hope this helps.
Maji
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 04:22 PM


All times are GMT. The time now is 09:23 AM.