Thread: MQL Code Maker
View Single Post
  #37 (permalink)  
Old 06-06-2005, 11:17 AM
Rastarr's Avatar
Rastarr Rastarr is offline
Senior
 
Join Date: Mar 2005
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Rastarr is a glorious beacon of lightRastarr is a glorious beacon of lightRastarr is a glorious beacon of lightRastarr is a glorious beacon of lightRastarr is a glorious beacon of light
Send a message via ICQ to Rastarr Send a message via AIM to Rastarr Send a message via Yahoo to Rastarr
Default

Scorpion,

Thanks for the newbie coding help - appreciated.
I plugged all that in and produced an mql which I've attached.

Last code block as follows doesn't make much sense to me on the entry conditions - both buy and sell would produce the same in my opinion.
Code:
// Check for BUY entry signal If IsBuying and IsSelling=False and IsClosing=False then { // Buy If StopLoss>0 then { RealSL=Ask-StopLoss*Point; } If TakeProfit>0 then { RealTP=Ask+TakeProfit*Point; } SetOrder(OP_BUY,Lots,Ask, Slippage,RealSL,RealTP,RED); Alert("Reversal Beta 1: Buying"); }; // Check for SELL entry signal If IsSelling and IsBuying=False and IsClosing=False then { // Sell If StopLoss>0 then { RealSL=Bid+StopLoss*Point; } If TakeProfit>0 then { RealTP=Bid-TakeProfit*Point; } SetOrder(OP_SELL,Lots,Bid,Slippage,RealSL,RealTP,RED); Alert("Reversal Beta 1: Selling"); };
As an aside, can placing Limits simply be a find/replace on the Buy/Sell instructions ? Forgive my lack of knowledge on mql

Cheers
Martin
Attached Files
File Type: mql Reversal Beta 1.mql (4.5 KB, 20 views)
EA Shark +1064% Return
Stock Market Crash? No Problem!
We Are Making Profits As Usual. More Info

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast