- Search Crypto Craft
-
Gambler180 replied Nov 30, 2008Yes. Finally it is all working. Thank you for all the help. I think I have learned more from you than I could from any tutorial.
I can see that I have deleted the first Buffer1[i]. I thought it was still there. The answer to your question is 1 ...How to make a program in metatrader.
-
Gambler180 replied Nov 30, 2008I have made an attempt to add another moving average but it is not showing. Only the first moving average is shown. There is no compilation errors. Attached is the file. What have I done wrong?
How to make a program in metatrader.
-
Gambler180 replied Nov 30, 2008Here I try to explain the whole function int limit; We creates the variable limit int counted_bars=IndicatorCounted(); Returns counted bars minus 1 if(counted_bars>0) counted_bars--; Here the last bar is being recalculated. I don't know how it ...
How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008Jubii. I now finally understand it
But I still dont understand what comes before that. I don't know why but I can't concentrate right now. int limit; Here we define the variable limit int counted_bars=IndicatorCounted(); last counted bar ...How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008So the value of Buffer1[i] is returned to double buffer1 and then setindexbuffer uses the value from double buffer1 to draw the line???
How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008The question should have been if buffer1[i] is connected with setindexbuffer which is connected with double buffer1. Is that right?
How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008So buffer1[i] is connected with SetIndexBuffer which is connected with double buffer1?
How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008for(int i=0; i<limit; i++) Here we make a for loop. We define the variable i and give it a value of 0. The loop ads 1 to i until i is not less than limit. Buffer1[i] Do we call buffer1 here and give it the value [i]????????? If we do that then why ...
How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008Bars = All the bars on the current chart. I will be back in about half an hour. I was just told it's dinner time now.
How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008Thank you for the nice words. The reason that I am not so active in this thread anymore is that I could not get the system to work. I started to use it on the daily charts and that was a disaster. the profit/loss ratio is not good with this system. ...
Gamblers 5 and 15 minute trading system
-
Gambler180 replied Nov 29, 2008Okay. limit=Bars-counted_bars; Here we creates a local variable which is called limit and the variable holds the value of bars-counted_bars.
How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008How can it be greater than when we substract 1? and why do we substract 1 in this case?
How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008Okay. int counted_bars=IndicatorCounted(); Here we created a variable called counted_bars. The Indicator_Counted function returns the amount of bars not changed after the indicator had been launched last and it recounts the last bar. ...
How to make a program in metatrader.
-
Gambler180 replied Nov 29, 2008I'm afraid it is going a little too fast. I am nearly finished with understanding the moving average indicator. Here is what I have so far, with comments to everything. #property indicator_buffers 1 // Here we define how many lines we need in the ...
How to make a program in metatrader.
-
Gambler180 replied Nov 28, 2008Oops. That is not good
This is working int var1=10; int var2=15; int var3=var1+var2; Comment (var3); Am I right if I say that if I had numbers like 1,2456 then I have to use double instead of int?How to make a program in metatrader.
-
Gambler180 replied Nov 28, 2008I have just done that. It's fine if others join. I can probably also learn something from other peoples questions.
How to make a program in metatrader.
-
Gambler180 replied Nov 28, 2008I would like to save two numbers in variables. var1=10 var2=20 and in the third variable I wamnt the result var3=var1+var2. Then I would like to show the result with the comment function. How do I do that? Should I "use" int or "string" for the ...
How to make a program in metatrader.
-
Gambler180 replied Nov 28, 2008Wow. That is smart. There is another thing I have been wondering about. under int init you have this code which shows some text on the screen. Comment( "Copyright
2008, SjCoInc" ); What do I do if I want some text under that. I copied the code and ...How to make a program in metatrader.
-
Gambler180 replied Nov 28, 2008If possible I am a little more confused now. Under start I see " double upfractal = GetFractal(MODE_UPPER), dnfractal = GetFractal(MODE_LOWER);" but I don't see where the custom function "GetFractal" is defined. and every time you have written ...
How to make a program in metatrader.
-
Gambler180 replied Nov 28, 2008Okay SetIndexBuffer(0, Buffer1); Binds the array variable declared at a global level to the custom indicator pre-defined buffer. Is this the predefined buffer? "#property indicator_buffers 1" SetIndexStyle(0, DRAW_LINE,0,0,Red); Here we choose the ...
How to make a program in metatrader.