Happy weekend
Traders Joking
How to identify and trade in a RANGE
Newdigital,
I think it would be good to show off the new MT5 product.
I am trading a live MT4 account with subs (who all use MT4), but I can certainly use MT5 for my investigations and posts.
After update source changed
Are you sure you don't have files in install directory ? Because when upgrading, AFAIK, MT will upgrade the install directory first and later will copy the MQL5 folder to user directory. That why, files in user directory overwritten by old files. But if you don't have files in install directory, then you may have to fid the location of these old files before reporting to Service Desk.
Hello Phi,
i dit not put any files into install directory. My approach is a) click modify b) edit c) compile or save. Files are automatically opened in user folder. How should they be moved to install dir.
And, if so, why do those custom files - in install dir - overwrite newer custom files in user folder ? What should be the policy behind ? I mean every application keeps on update custom files with newest timestamp....
Do you know what i mean ? This is simply gaga
VPS MT5 Ubuntu 12.10 - Fatal Error
Ah ok, vrtrualbox is also a good option to try.
But ive a Xen something that ive to work around. But it looks better organized then Wine..
Signal Systems
Why paradigm? This is axiom (axiom of choice). I traded on close bar and I traded on open bar, and I traded normal indicators, and I traded repainting indicators.
Sometimes - the people confused repainting with contrinuing painting, and trading on open bar with trading on close bar. We are having a lot of threads about prorgamming but just few threads about how to trade in practical way with a lot of indicators in CodeBase for example :)
Right, if you consider just one timeframe. But remember, one of the greatest advantage of algo trading is that you can analyse and compare multiple timeframes in real time.
And there are lot of other ways to be free of axioms using HFT.
So, for me this is just a paradigm.
Let's find out: How succesfull are we in developing and earning?
You need to add one: "Followed others (manual or EA) on a signal service site but got creamed." LOL
Weeding out consolidation
Paysonwelch, I like the action so far. I can see how the channels help identify the areas of probable reversal and the angle shows me which direction I should NOT be trading. THANKS so much.
Automated trading vs manual trading
I can say 100% automated trading will win if we compare with manual Trading :) cause automated trading can Trade 24/5 meanwhile manual trading only trade a few time in a day! and as you can see most of signal provider using auto/EA to get thousand percent profit meanwhile manual trading like me only get a small profits. :)
and one more thing, if you have big money, you can use EA or automated trading to get big profit in market! but if you only have small money! my suggestion is stay away from EA, cause I have bad feeling with EA :) loland just FYI, EA or automated Trading are really good friends of brokerage! but not good friends with small trader like me :)
HOW TO DRAW A LINE PARALLEL TO ANOTHER LINE ,without using channel ?
It should work as long as bar D is not in the future, if it is scale the values to get a bar that is already on the chart.
and i was tried that also:
SLOPE=( B_PRICE-A_PRICE )/BAR_AB;
D_TIME=C_TIME-BAR_AB;
D_PRICE=C_PRICE-SLOPE*BAR_AB;
but there was problem in result. ( there is no error or warning).
=================================================
FOR EXAMPLE, as you see in pic. below :
and the points are: ( the points are Schematic )
BAR_AC=Bars( Symbol(),Period(),HP_A_TIME,HP_C_TIME); SLOPE=( HP_C-HP_A )/BAR_AC; SWEET_ZONE_POINT_TIME=HP_B_TIME-BAR_AC; SWEET_ZONE_POINT=HP_B-SLOPE*BAR_AC;
the result is not good and, line draw form 1 candle before point B.
is that refer to high lighted ? ( you can see the value ).
On chart comments multiple lignes ?
Thanks guys !! It's all about the little things !
W.
Controlling the display of a indicator
I am calling the TRIX indicator in an EA to calculate some values. The moving period can vary so I am calling it within a function and not within the OnInit() function. The issue I am having is every time the moving period changes, it adds a new indicator to the chart. Is there a way to either delete the old indicator or not display it at all. Here is the code I am using to call the indicator:

Sleep EA during a fix time of the day
Hey yes you are right I corrected that in the meantime.
This being said it does not really help because the above chart is on the closing hours as I feared and not the opening hours...
Thanks for you help !
Mt4 showing only signal providers from the same broker as the mt4
I'm a newbie and have just found out in this thread that one could find more providers by right clicking. Thanks Tonny for starting the thread, otherwise it might have taken me years to discover it ;-)
Need your opinion on sharing strategies
That's exactly my point. That new guy is using a different strategy.
New User - Automating against simulated currency data
It looks like I have that according to this http://screencast.com/t/mvtEGyndHzO. Where's the hook?
Load indicator - iCustom
I see i messed up the post, after a review it works now. At least i dont get the error anymore.
But now how to get the data from the indicator..
void OnTick() { for(int i=0;i<symbols;i++) { Print(get_Custom(handles[i],0)); } } double get_Custom(int handle,int bar) { double lw[1]={0}; CopyBuffer(handle,0,bar,1,lw); return(lw[0]); }
Ive red the copybuffer part an reviewed a view other example EA's but i dont get it yet..
With the code above i thought i can get the information from the indicater:
"SetIndexBuffer(0,UpSignal,INDICATOR_DATA); PlotIndexSetInteger(0,PLOT_ARROW,108);"
is set to true or false.
So i thought in the copybuffer the 0 before the 'UpSignal' was:
int start_pos, // start position
Or am i thinking the wrong way?
Questions/Answers on the Support Vector Machine Learning Tool
Like other people here I had to manually edit _demo and even manually put the files in the same directory, something not 100% right with my MetaQuotes demo. Anyway, I started testing on the entire 1m history EURUSD (around 4 years, I did a test run with MACD first to make sure things are working), did not get any errors yet but nor did I get any results or even any processor "fatigue". The Journal reports my OpenCL device, is it used by default or is it some kind of false alarm? Anyway, I have a small device with 5 units which could cause problems if OpenCL testing happened with big devices. So, no progress, no graph and no loud fan in the first 15 minutes. Are we training the SVM perhaps and is it taking too long because of the 4 years perhaps? Maybe once in a while svmtrader could print a diagnostic?
MANUAL TRADING. The search for the Holy Grail.
Can you please explain what you define as "consistently profitable" ? day to day, week to week, month on month, every week for 12 months ? what exactly is your definition ?
Hi Raptor,
Short version: On my signal system, my goal is 2% safe growth each day. Over the last 3 weeks I have averaged about 6% per day - safely, with a nice flat curve.
Long: Over the past 7 years I traded stocks, options, FX, futures, and then options on futures. Then I tried FX and futures all over again. Over the past 5 years, I have started over 100 systems on the big
signal-following sites. I also followed over 50 signals from other
traders - but all sucked my accounts dry. Finally I had no other option than to play around with a $25 micro-lot FX account! I used to blame all my troubles on those stupid signal providers and of course, Ben Bernanke! LOL. But I have gotten smarter now, and I don't blame anyone but myself.
16 months ago I started to write in my trading journal, seeing what I was doing right and wrong. I realized that I kept anticipating the market instead of waiting for the signal. And I had a very strong directional bias from "gurus" I was following, and it was sabotaging me. But I was careful to keep my margin under control and really obey my rules. I then had my first breakthrough; I took my system on the biggest FX signal site from number 9,000+ to number 42 in just 4 weeks! I was ecstatic.
But my success was short lived. During the 2011 holidays, I traded on very thin volume. To make matters worse, I didn't honor my stops. I just "knew" that the market was about to reverse. My account died again. However, there was a silver lining. Not only did I catch the vision of what was possible but I also got the attention of a fabulous futures trader who had successfully traded up to 100 S&P contracts at a time. He took me under his wing, spending hours teaching me.
The bottom line for him was "Simplicity + Discipline = Success." He convinced me that taking small losses was part of the game. That it didn't take many good wins to create a positive day IF I didn't blow it with a huge stupid loss. Following my rules was the key to it all. He made me unsubscribe from all my "gurus" so I could only trade what I see. And he showed me the possibility of trading without any indicators. I have taken what he showed me and applied it to the FX market and made it my own now.
I really like these quotes from the article in Investopedia called "How to Develop a Trading Brain" :
"No other profession creates so many and such intense emotions and reflects so much of our personalities."
"The fundamental role of trader psychology tends to be underestimated and too much emphasis placed on the technical side. While both are essential, it is arguably the right mindset that differentiates successful from unsuccessful traders. However, learning the technical aspects of trading is more straightforward than acquiring a top-notch trading brain. The latter generally entails working intensely on one's own personality traits and eradicating entrenched behavioral patterns. This process is not easy and requires dedication, time, and often, the aid of a skilled coach. Nevertheless, the results are very likely to reap dividends."
My goal is 2 to 4% growth on my account each day, depending on the movement of the market. For the last three weeks I have averaged about 6% daily. This is the best I have ever done. I will do my best to keep it up until my broker says "max lots reached!" And then I will open two accounts and start over again.
strange datetime assignment
So I have a strange problem. I tried to verify NewBar appearance with the following code from Samuels article "Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners". I tried the code on System Tester and I saw that is no trade. Than I saw that the Old_Time variable take the value of New_Time variable without any code.
I mean that Old_Time=New_Time but IsNewBar is never equal to true.
I do not know why Old_Time is equal to New_Time[0] without execution of the if(Old_Time!=New_Time[0]) loop.
.
I hope you understand what I mean.
Sorry for my bad english.
Variable IsNewBar is declared locally, and so it will initiated on every tick with false value. To solve this, declare variable IsNewBar as statically declared local variable or globally declared variable.
Please read MQL5 doc about variable especially this Visibility Scope and Lifetime of Variables
Here's how to declare as statically declared local variable
void OnTick() { static bool IsNewBar=false;
Here's the global one
bool IsNewBar=false; void OnTick() {
plot vertical and horizontal line
i want to plot vertical lines at timeSelsect (10 or 11h ) and timeSelcet+5 but it draws only one time why?
thank you
Why don't you right click the chart and select Object List and then select click "List All" button. You will see there that you probably already have 2 vertical lines of Red "VerticalStart" and Dark Violet "VerticalEnd".
The problem that the second vertical line is not displayed is because it was created on same time-coordinate like the first vertical line and you have to wait for 5 hours to get this second vertical line displayed.
if(Time.hour==TimeSelect && Time.min==0) //draw vertical line at TimeSelect { ObjectCreate(0,"VerticalStart",OBJ_VLINE,0,rates[0].time,0); ObjectSetInteger(0,"VerticalStart",OBJPROP_COLOR,clrRed); } if(Time.hour==TimeSelect+5 && Time.min==0) //draw vertical line at TimeSelect+5 { ObjectCreate(0,"VerticalEnd",OBJ_VLINE,0,rates[0].time,0); ObjectSetInteger(0,"VerticalEnd",OBJPROP_COLOR,clrDarkViolet);