A function to determine why an order cannot be opened
Here is an example of a function which will display the actual error for why you cannot open a trade in MetaTrader. This is more descriptive then what you get by default. OrderSend(Symbol(),OP_SELL,LOT,Bid,2,SL,TP,”",-1,3); //First you want to send an order if it fails error will = -1 so the code below will kick in if (error==-1).
How to only allow one trade per bar in MetaTrader
When trading in MetaTrader you may find times when you only want to allow one trade to take place per bar. This can be accomplished with the code below. datetime Time0 = 0; //Create a global variable Time0 void start() //This is your start function { if (Time0 != Time[0]) //If the Time0 variable we created.
Using an array to determine a new bar in Metatrader
Recently I had a friend ask me why his array was not accurately portraying the last 30 bars of data. It is important when you create an Array that you are only changing its variable when the bar closes or opens. Otherwise your array would be getting updated during every single tick(or multiple times within.
Justices decide 5-4 future elections will go to the highest bidder
One week ago today something truely sad happened to our republic. By a 5-4 vote justices in the supreme court decided that for profit corporations can spend as much much as they want on our elections. You can say America is no longer the same with this ruling. The floodgates of funds from the companies.
George Soros says gold is the next bubble
George Soros one the most well known currency traders, if not the well most currency trader today, stated that there are asset bubbles developing around the world. “The ultimate asset bubble is gold”. I cannot agree more. People flock to gold during times of economic crisis. I wrote a previous blog entry on this that.
Is now the time to buy a house in Arizona?
I have recently considered purchasing a new house in AZ and I took time to analyze the market. Hopeful this post will help provide some insight to other people who are wondering if now is the time to buy a house. I use Tempe, AZ in my example since this is the area that I.
Perhaps Brown’s win was a referendum
I wrote a post last week that Brown’s win was not a referendum on Obama’s presidency. However, this week I’m starting to change my mentality some. There are a couple of reasons for this. Polls indicate that 70% of the public was satisified that the dems lost their filibuster proof majority. The second reason being that.
Existing home sales down 16.7% in December
According to the National Association of Realtors existing home sales fell 16.7 percent in December brining the annual rate to 5.45 million units. It appears what happened was everyone in the market for a house rushed to buy one in November to take advantage of the government subsidy. The program was then scheduled to expire.
Brown’s win a referendum on Obama’s presidency?
Irony appears to be in the air tonight. The liberal legacy of Edward Kennedy has been replaced by Scott Brown. Who vows to go to Washington fighting against any healthcare bill. All of this after Kennedy installed a new law for a special election for the simple purpose that the Democrats would not have a.
Buying a car
Last week I embarked on purchasing another vehicle. Outside of purchasing a house a car purchase is the single most important purchase the average individual can make. Some could argue it is the most important since you’re buying cars more frequently than houses. Not to mention the fact that cars depreciate faster than any other.

