Saturday, 22 February 2014

Ghafari trend trading System

How to Trade Both Trend and Range Markets by Single Strategy?

What Happened to Me?
Seven years ago when I was about to finish a long time study on how to understand the real meanings of economic concepts and in a shiny day when apparently everything did worked out well , I found myself a leading scientist of economics, someone who will be rich in couple of months. Seasons passed but nothing really happened with my saving account and I was fully desperate when I did get into disappointment hole.
One year later I met an old friend of school days, and he told me something that made me feel like a baby found his mother, a passion of life. Yes, he introduced me the global currency market.
Just like anyone else in the beginning of a long road, I asked my friend about how to trade? He has guide me how to take the courses and I did .one more year has passed and I was still thinking why every time I get into trade using trend based tools, the market turns to a boring range market, the situation of forcing me to close the trades loosing what I earned from last couple of trades and much worse when I use overbought/oversold strategies and the market turns to trend situation. That was my destiny while I've ruined two consecutive accounts like a peace of cake.
After those failures I decided to not open any trading accounts unless I know how to trade both moods of the market and to be an approved Emotionally Controlled Trader. Well, what happened next..? I have a real account now.
Before any specific suggestion, I must do first advice to not to do what I did unless you prove yourself just like last part of my story. Second advice is to avoid complex trading systems. Yes I mean customized complicated experts or trading systems, why? Because the only elements that can take you to gold mine is your understanding of the market behavior and sticking to what the simple indicators say and more importantly the passed license of Emotionally Controlled Trader. Don't go far while a simple Moving Average line next to a simple oscillator like RSI can give you enough signals to make money, but not easily as I say.
Why it is not easy?
The fact is, it is not honestly easy to make money at the end of a year through using this trading set up or the other ones, because as I said already, it is impossible for a trader to predict every next action of the market. The reasons behind this saying, would be "no one had 100 % wining trades in such a market" and the other reason that I personally refer to when I think I'm OK enough in trading is "when I see the huge currency market screen on my laptop, I really see nothing while the real huge market is hidden behind the screen and you don't actually know what's going to happen next with unexpected Iraqi, Iranian, Chinese or Mexican gulf storms cases next". So all I am trying to emphasize is not forget to that a real trader must know as much as he/she can from all market movers first and always has an eye on possibilities that could easily turn to a nightmare. Those possibilities often come up with a 300 pips bar or a scary gap just against your technically approved trade.
HOW?
Well, whether you have a magic expert indicator or not, with no doubt you must combine at least two different ways or indicators to produce a signal which is reliable for both trendy and range market situations. Briefly I show you how and which ones I prefer to use.
Draw:
  1. 3 Moving Averages of 13, 21 and 55 EMA in green, blue and red.
  2. (8, 21,8 ) MACD.
  3. Relative Strength Index (RSI) of 21 period with a line of 50.
@Go LONG when a new candle opens over triple MAs + MACD make second bar above zero line + Value line of RSI moves above RSI Trend Line.
# EXIT when the value line of RSI breaches the given Trend Line downward.
@Go SHORT when a new candle opens below triple MAs + MACD make second bar below zero line + Value line of RSI moves below RSI Trend Line.
# EXIT when the value line of RSI breaches the given Trend Line upward.
How to Draw the RSI trend line?
you simply have to connect at least two turn points of RSI value line which can interpret into drawing a line which connect the last value line top (the last value line Top is the one that formed much closer to your current signal than the others and match better to correction on the price chart) to next line top with is normally lower than the first top in a Short trade and higher than the first top in a Long trade.
The Top of RSI value line is the hump that formed because of a correction (Fibo ratios for correctional pullbacks), so try to filter the useless RSI Tops with the real chart formation as you may get it wrong when a hump has formed on the RSI while there is no correction on the price chart.
Also, if you realized that you actually took the wrong Top for the trade and you already entered the market, please and for god sake, exit the trade and open another one on the true direction of the market (As I said always there will be some wrong trades. So assume it as a lesson and exit immediately and run with the trend).
Key Notes:
  1. In fast moving market situations (when the signal confirm after one or two long candles) wait till the price bounce back to correctional level of % 23 Fibo and then enter the trade.
  2. Most reliable signal confirms when the RSI running Above / Below 50 line when you go for a Long / Short.
  3. A break of RSI Trend Line confirms when the second candle opens on the suggested direction.
  4. Don't ever take the trade unless the second bar opens Above / Below MACD zero line for a Long / Short trade while the MACD signal line will just give you an in advance alert to be ready for the trade.
  5. Once again, the cross over of MACD Value and the Signal Line will warn of a potential trade but don't ever take it unless you have your own reasonable reasons to do that.
  6. If you get out of a Buy trade upon an Exit signal, you can go for an immediate SHORT trade with a 50 point Target (Take Profit) and if the trade hit 50 point target while another SELL signal confirms, just follow the signal and go for the second SHORT. And vice versa, if you get out of a SHORT trade.
  7. Don't ever take second trade of LONG / SHORT in line with the first trade order type unless a FRESH signal of aforementioned conditions confirm to trade.
  8. Don't ever risk more than % 5 of your account balance unless you have your reasonable money management rules that suite you.
  9. Avoid the side markets by observing a narrowed Bollinger Bands or flat RSI line.
  10. Place the Stop Loss 10 pips Above / Below of Bearish / Bullish Parabolic SAR first appeared dot or 10 pips Above / Below the current Resistance (R2) / (S2) Support levels.
  11. Most of the false signals come when you trade against the major trend of the market. To know how to define the major trend use bigger time frame like daily or even weekly chart and apply the same setup on that chart to know what is probably the right direction of the market. Sometimes when the price touch the 55 EMA line react as a support or resistance level and at the same time you may have a trading signal against this fact. In this case you are probably against the major trend.( Pic.3)
  12. Exit the trade as soon as you see the clear signals (Don't be too optimistic when the market tell you another story. Exit the trade if you want to win)
  13. Don't hesitate to apply what the system show you while an over guess trader normally lose money.
Be relax, don't risk too much and stick to the plan. Also I don't want to leave you alone to process everything by yourself as you can email me to s.a.ghafari@iftc.ir and I will do my best to answer you.
S.A Ghafari
IFTC Financial Studies
www.iftc.ir
Read More

Monday, 10 February 2014

Silica carbide heater

General Information about the silica carbide
http://www.eurotherm.com/industries/glass/glass-applications/glass-furnace-control/control-of-silicon-carbide-heating-elements-using-scrs/

Indian manufacturer
http://www.indfurnace.com/contact.html
Read More

Thursday, 26 September 2013

Dynamic Link Library Registration

DLL (Dynamic Link Library) files are composed of computer data and code. These are used by software makers as shared resources on Windows operating systems. Rather than install separate components, they share the same DLL file. If you want or need to manually register/unregister DLL files, here’s how it is done.

Dynamic Link Library Registration


Step 1
If necessary, log in using your administrator account.

Step 2
Click Start and type command or cmd at the search box. It will depend on what Windows version you have.

Step 3

Type regsvr32 "path and FileName.dll" at the command prompt. Hit the Enter key. Make sure that you enter the correct name and file path. An example is "C:\Windows\System32\example.dll". This will register the file.

Step 4
After registration, a message will appear telling you registration was successful. The message will inform you that the file has been placed in the Windows Registry.

Command Line

If you want to manually register/unregister DLL files via the Regsvr32 Command Line, you can do so. Windows PCs with Internet Explorer 3.0 or later have Regsvr32.exe. If you are running 64 bit versions of the Windows OS, there are two variants.

The 32-bit version is at: %systemroot%\SysWoW64\regsvr32.exe

The 64-bit version is at: %systemroot%\System32\regsvr32.exe

To use any version of the utility, type the following:

Regsvr32 [/u] [/n] [/i[:cmdline]] dllname

The /u command will unregister the file. The /I can be used with /u to call dll uninstall. The /n parameter will not call DllRegisterServer. It is used with /i. If you use /s, no message boxes will be displayed. This is for Windows XP and later versions.

When you first launch Regsvr32.exe, the program will try loading the component it identifies. The DLLSelfRegister function will be invoked. If it works, a message will appear notifying you. If it doesn’t, an error message will pop up.

Unregister Dynamic Link Libraries


Click Start and type cmd at the Run box. The Windows Command Prompt will appear. If you are using Windows Vista, press the Windows and R keys at the same time. This will bring up the Run dialog box. Click OK.

The following commands can be used with both utilities. Type regsvr32 /u filename.dll. Hit the Enter key. A message will appear stating the file was unregistered.

Benefits of DLL Files


DLLs are notorious because they seem to cause so many error messages. But these are actually vital to improving the performance of computer programs. DLLs reduce the resources needed to do common tasks. There are fewer files on a hard disk and memory, increasing system speed. DLLs also promote the use of modular programming architecture.

It helps dynamic loading of functionality as well. Program installation and deployment become less complicated. If a DLL file is upgraded, every software that relies on that file will benefit.

There are several kinds of DLLs. Many are utilized by one or more programs. Device driver, Control Panel and ActiveX Control files are just some of them. ActiveX Control Files (.ocx) for instance, engage in a lot of functions that are reusable. In this sense they are comparable to Java. The files in the Windows Control Panel also use a lot of DLLs.

Usually there is no need to manually register/unregister DLL files; it is done automatically. But in case it has to be done manually, it pays to know the correct methods.

Charlie Brown is a free lancer writer and content builder of many Technology sites and has written many useful genuine articles.
Read More

Sunday, 22 September 2013

1046_0 - PhidgetBridge 4-Input

PhidgetBridge 4-Input

 

Product Description

The PhidgetBridge lets you connect up to 4 un-amplified Wheatstone bridges, such as:

  • strain gauges
  • compression load cells
  • pressure sensors/Barometers
  • piezoresistive accelerometers
  • Magnetoresistive sensors (Compasses)

 

 

Product Features

  • Interfaces to up to four Wheatstone Bridge based Sensors
  • Supports variable data rates – from 1 to 125 samples/second
  • Software configurable amplification
  • Great interface for Load Cells, Strain Gauges
  • Connects directly to a computer's USB Port

http://www.phidgets.com/products.php?category=34&product_id=1046_0

Read More

Monday, 5 August 2013

Kirobo The Robot Sets Off For The International Space Station

 

On Sunday morning the world’s first talking humanoid astronaut left Japan and headed off for the International Space Station.

The robot, named Kirobo, weighs only 1 kilogram and stands 34 centmeters from head-to-toe. Kirobo is travelling to the ISS along with five tons of supplies for the crew and will be joined by the Japanese astronaut Koich Wakata later this year.

Kirobo the robot

The robot was designed by Tomotka Takahashi of the University of Tokyo’s Research Centre for Advanced Science and Technology (RCAST), Robo Garage of Kyoto University and the ad firm Dentsu.

The plan is for Kirobo and Wakata to conduct the first ever space-based communication experimentsbetween a robot and a human.

An Emotional Welcome

Kirobo has been designed with functions that will make conversations more natural. The robot has voice recognition capabilites and telecommunications functions. It has the ability to process natural language and can respond to different facial expressions.

Kirobo and Wakata are already well acquainted with one another, so the robot should display emotion when the two reunite in space later this year.

The creators of Kirobo also want to explore whether machines such as this can be a source of emotional support for people who are isolated over a long period of time. Because Japan’s aging population are living increasingly isolated lives, researchers feel that robots could be a solution, interacting and showing emotion to those in need.

“I wish for this robot to function as a mediator between a person and machine, or a person and the Internet, and sometimes even between people,” creator Takahashi said.

Kirobo has described the mission into space as: “One small step for me, a giant leap for robots.”

[Image via huffingtonpost]

SOURCE: http://www.digitaltrends.com/international/kirobo-worlds-first-talking-robot-astronaut-heads-for-iss/ Read More

Saturday, 3 August 2013

Reading last row data from Mysql database using LabVIEW

image

 

I have used LabVIEW 2011, database connectivity toolkit to develop the database program. In LabVIEW database connectivity toolkit there is not straight vi to access the last record from the database.

to get the last record,

1. Add one extra column named ID with the parameter of int & auto increment.

2. Like I shown in the above diagram code your program. you will get the maximum value of your ColumnID.

3. then you can add another select.vi with where ID=column ID that you got from the previous select.vi

4. You will get the last record.

Read More

Thursday, 1 August 2013

Using MySQL with the Database Connectivity Toolkit on Windows

Solution:
There are several ways to connect to a MySQL database from LabVIEW using the Database Connectivity Toolkit. This article outlines how to use the ODBC tools provided by Mysql.com. This article also assumes that you either have a MySQL database installed and running on your current computer or another computer accessible through the network (see Remote Access from your webhost)

  1. Download the ODBC server MSI from mysql.com.
  2. Install the server on your PC
  3. Navigate to Start»Settings»Control Panel»Administrative Tools»Data Sources (ODBC)
  4. Click the Drivers tab and ensure that MySQL is listed
  5. Go back to the User DSN tab, click Add, and select MySQL


  6. A new window will popup allowing you to enter in your connection information to your MySQL server. The default port number is 3306. You can enter localhost as the server name if you have it installed on the computer you're currently working on.
  7. In LabVIEW, put a DB Tools Open Connection VI on the block diagram and wire a TRUE constant into the prompt input.
  8. Run the VI
  9. A prompt will come up titled Data Link Properties. On the Provider tab, leave the setting to the default, which is Microsoft OLE DB Provider for ODBC Drivers.
  10. Select the Connection tab, and from the Use data source name drop down list select the server connection you've just created.

At this point, your application will error out, but that's because you did not do anything with the connection. In your application, be sure to use a DB Tools Close Connection VI at the end of your program or database access. You can specify the path to your DSN file by creating a control wired to the source terminal on the DB Open Tools VI and setting the prompt value to false.
For further help, see the Database Connectivity User's Manual.
Related Links:
MySQL Connector ODBC
Product Manuals: LabVIEW Database Connectivity Toolkit Manuals (June 2008)
NI Developer Community: How to Make a Parameterized Query into a Stored Procedure Routine with MySQL Databases

Read More

Monday, 29 July 2013

water Tight and impact resistance Case

The watertight and impact proof aiShell™ mini is specially designed for outdoor protection of the Apple iPad mini. Many functions are still usable while iPad is inside. Use the Apple iPad mini in any situation! Because of the slim design of the device, it is necessary to handle it with care. Our case provides protection not only against water, bumps,
drops, scratches and dust. Of course the iPad mini can be put inside and removed within seconds and without the need for tools. The flexible display foil gives a reliable protection against ingress of water.

http://www.andres-industries.de/index.php?option=com_djcatalog&view=show&layout=blog&cid=4&id=57&Itemid=97&lang=en Read More

Rugged case, Industrial case

Explorer 1908

 

Explorer 1908 Case is the smallest case in the line, functional and lightweight, ideal for small equipment. This is a sturdy case that's exceptionally resistant to impact, corrosion, humidity, water, dust, sand and atmospheric agents in general.

Explorer 1908 Case

With a body made of thick plastic resin, the Explorer 1908 incorporates a number of patented innovations, resulting in a strong and versatile case that's able to withstand the harshest of environments. Designed and manufactured in Europe, this waterproof case offers absolute protection.

The Explorer 1908 case features:

  • Copolymer Polypropylene compound body
  • Neoprene seal
  • Waterproof and watertight
  • Sand-proof, dustproof and resistant to chemicals
  • Resistant to harsh temperatures (-33°C / +90°C)
  • Pressure valve quickly adjusts internal pressure in case of sudden changes in height or temperature
  • Ergonomic handle
  • Strong pressure locks can be padlocked
  • Can be stacked (even if different-size models)
  • Recommended for professional applications

Explorer 9413

Explorer 9413 Case is a large waterproof case that's exceptionally resistant to impact, corrosion, humidity, water, dust, sand and atmospheric agents in general. With a body made of thick plastic resin, the Explorer 9413 incorporates a number of patented innovations, resulting in a strong and versatile case that's able to withstand the harshest of environments. Designed and manufactured in Europe, this waterproof case offers absolute protection.

The Explorer 9413 case features:

  • Copolymer Polypropylene compound body
  • Neoprene seal
  • Waterproof and watertight
  • Sand-proof, dustproof and resistant to chemicals
  • Resistant to harsh temperatures (-33°C / +90°C)
  • Pressure valve quickly adjusts internal pressure in case of sudden changes in height or temperature
  • Ergonomic handle
  • Strong pressure locks can be padlocked
  • Corrosion proof metal hinges with lid stay features
  • Two-person lift side handles
  • Can be stacked (even if different-size models)
  • Recommended for professional applications

Explorer 9413 Case

http://www.samcases.co.uk/explorer-cases/explorer-9413-case.htm Read More

Sunday, 28 July 2013

Excel RTD Throttle Interval

The Excel update rate is called the data throttle interval. This defaults to 5 seconds and can only be modified via the Excel object model or the registry.

To set the throttle interval through the Excel object model:

  1. In Excel, go to the Visual Basic Editor (by pressing ALT+F11 or clicking Visual Basic Editor from the Macro menu (Tools menu)).
  2. In the Immediate window (press CTRL+G or click Immediate Window on the View menu), type this code: Application.RTD.ThrottleInterval = 1000
  3. Make sure your cursor is on the line that you just typed, and then press ENTER.
  4. To verify that it is set correctly, type this line of if code in the Immediate window:

? Application.RTD.ThrottleInterval

  1. If you put your cursor at the end of this line and press ENTER, it should display 1000. Then you know that your throttle interval is set correctly.

To set the throttle interval higher through the registry:

Set the following DWORD registry key in milliseconds:

HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Excel\Options\RTDThrottleInterva1.0.0.0 l

http://www.measuresoft.com/support/faq/post/Excel-RTD-Throttle-Interval.aspx

Read More