log in     sign up for free
 
If you really think the stock is going to make a big move - and that should be the only reason you are buying the stock to begin with - then there is no reason to haggle over an eighth of a point. Just buy the stock.
David Ryan
 
 
Home
systems (285)
 
 
Special offer: buy AmiBroker and EOD+Real-Time Data
 

Buy

MetaStock

     (special offer)
 
 
 

Buy

EOD data for MetaStock

     (special offer)
 
 
 

Buy

Realtime data for MetaStock

     (special offer)
 
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

Awesome Oscillator auto Trader

System for: MetaTrader

 

 

Views:  2956

Added: November 16, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 
 

email this link

 
 
Tags: MetaTrader, system
 


Awesome Scalper V1.3 Awesome Oscillator auto Trader for 15 minutes charts

 

 



Code:

/*[[
Name := 2Extreme4U - Awesome Scalper 1.3
Author := 2Extreme4U
Link := www.omniscienttrader.com
Notes := Scalping expert/Trend follower
Lots := 1.00
Stop Loss := 25
Take Profit := 50
Trailing Stop := 15
]]*/

/////////////////////////////////////////////////////
// Defines
/////////////////////////////////////////////////////
Defines: Slippage(5); // Slippage
Defines: EMA1(11); // EMA 10
Defines: PSARStep(0.0150); // Parabolic SAR Step
Defines: PSARMaximum(0.2000); // Parabolic SAR Maximum
Defines: PrimaryTarget(29); // Primary target to close 1 lot
Defines: BreakEvenSL(11); // Number of points made before the stop is moved to breakeven
Defines: TradesPerCurrency(1); // Number of lots to trade

/////////////////////////////////////////////////////
// Variables
/////////////////////////////////////////////////////
var: EMA101(0), EMA102(0); // EMA 10 Values
var: Psar(0), PsarP(0); // Parabolic SAR Value
var: Awesome(0), AwesomeP(0), AwesomePP(0); // Awesome Occillator Value
var: Accel(0), AccelP(1); // Accelerator Occillator Value
var: OpenSell(0); // Sell Trades Counter
var: OpenBuy(0); // Buy Trades Counter
var: PriceOpen(0); // Price Open
var: I(0); // Misc Counter
var: Mode(0); // Squirl the Mode variable for multiple use

/////////////////////////////////////////////////
// Main Script Conditions
/////////////////////////////////////////////////
If Curtime - LastTradeTime < 5 then Exit;

If FreeMargin < 500 then Exit;

/////////////////////////////////////////////////////
// Calculations / Setting Values
/////////////////////////////////////////////////////
OpenSell = 0;
OpenBuy = 0;
for I = 1 to TotalTrades
{
Mode = ord(I, VAL_TYPE);
if ord(I, VAL_SYMBOL) == Symbol then
{
//Calculates how many Sell we have for the current Symbol
if Mode == OP_SELL then
{
OpenSell++;
};
//Calculates how many Buy we have for the current Symbol
if Mode == OP_BUY then
{
OpenBuy++;
};
};
};

Awesome = iAO(0);
AwesomeP = iAO(1);
AwesomePP = iAO(2);
Accel = iAC(0);
AccelP = iAC(1);
Psar = iSAR(PSARStep, PSARMaximum, 0);
PsarP = iSAR(PSARStep, PSARMaximum, 1);

/////////////////////////////////////////////////
// Comment on the chart
/////////////////////////////////////////////////


/////////////////////////////////////////////////
// Long/Short Trade Opening
/////////////////////////////////////////////////
If OpenBuy < TradesPerCurrency then
{
// Buy 4 points higher than last candle close
PriceOpen = Close[1] + 4 * Point;
If Awesome > 0 and AwesomeP > 0 and Awesome > AwesomeP and AwesomePP < 0 and Accel > AccelP and Psar < Ask then
{
if High[0] >= High[1] then
{
Alert(Symbol, " BUY ALERT. Awesome Scalper. Buy at ", PriceOpen, " or better.");
if Ask <= PriceOpen then
{
SetOrder(OP_BUY, Lots, Ask, Slippage, Psar, Ask + TakeProfit * Point , BLUE);
Exit;
};
};
};
};

If OpenSell < TradesPerCurrency then
{
// Buy 4 points lower than last candle close
PriceOpen = Close[1] - 4 * Point;
If Awesome < 0 and AwesomeP < 0 and AwesomePP > 0 and Accel < AccelP and Psar > Bid then
{
If Low[0] <= Low[1] then
{
Alert(Symbol, " SELL ALERT. Awesome Scalper. Sell at ", PriceOpen, " or better.");
if Bid >= PriceOpen then
{
SetOrder(OP_SELL, Lots, Bid, Slippage, Psar, Bid - TakeProfit * Point, RED);
Exit;
};
};
};
};

/////////////////////////////////////////////////
// Trade Management
/////////////////////////////////////////////////
for I = 1 to TotalTrades
{
Mode = ord(I, VAL_TYPE);
if ord(I, VAL_SYMBOL) == Symbol then
{
If OpenBuy > 0 then
{
//If Primary target is met, close half play and move stop to 0 for other lot.
if (Bid - ord(I, VAL_OPENPRICE)) >= PrimaryTarget * Point then
{
Alert("Primary Target met. BID = " + Bid + ". Closing order at market for " + Symbol + " on " + Period + " Period.");
CloseOrder(ord(I, VAL_TICKET), ord(I, VAL_LOTS), Bid, Slippage, Orange);
Exit;
};
// PSAR Stop
if Psar > PsarP and ord(I, VAL_STOPLOSS) != Psar and (Bid - Psar >= 4) and (Psar < Bid) then
{
ModifyOrder(ord(I, VAL_TICKET), ord(I, VAL_OPENPRICE), Psar, ord(I, VAL_TAKEPROFIT), BlueViolet);
Exit;
};
// If 10 pips profit, move Stop to BreakEven
if bid - ord(I, VAL_OPENPRICE) >= BreakEvenSL * Point and ord(I, VAL_STOPLOSS) < ord(I, VAL_OPENPRICE)) then
{
ModifyOrder(ord(I, VAL_TICKET), ord(I, VAL_OPENPRICE), ord(I, VAL_OPENPRICE), ord(I, VAL_TAKEPROFIT), Cyan);
Exit;
};
/*
// Psar has changed direction so we want to exit at breakeven
if psar > Bid and ceil(ord(i, VAL_OPENPRICE)*10000) != ceil(ord(I, VAL_TAKEPROFIT)*10000) then
{
ModifyOrder(ord(I, VAL_TICKET), ord(I, VAL_OPENPRICE), ord(I, VAL_OPENPRICE), ord(I, VAL_OPENPRICE), Orange);
Exit;
};
*/
};
If OpenSell > 0 then
{
//If Primary target is met, close half play and move stop to 0 for other lot.
if (ord(I, VAL_OPENPRICE) - Ask) >= PrimaryTarget * Point then
{
Alert("Primary Target met. Ask = " + Ask + ". Closing order at market for " + Symbol + " on " + Period + " Period.");
CloseOrder(ord(I, VAL_TICKET), ord(I, VAL_LOTS), Ask, Slippage, Orange);
Exit;
};
// Psar Stop
if (Psar < PsarP) and (ord(i, VAL_STOPLOSS) != Psar) and (Psar - Ask >= 4) and (Psar > Ask) then
{
ModifyOrder(ord(I, VAL_TICKET), ord(I, VAL_OPENPRICE), Psar, ord(I, VAL_TAKEPROFIT), BlueViolet);
Exit;
};
// If 10 pips profit, move Stop to BreakEven
if ord(I, VAL_OPENPRICE) - Ask >= BreakEvenSL * Point and ord(I, VAL_STOPLOSS) > ord(I, VAL_OPENPRICE)) then
{
ModifyOrder(ord(I, VAL_TICKET), ord(I, VAL_OPENPRICE), ord(I, VAL_OPENPRICE), ord(I, VAL_TAKEPROFIT), Cyan);
Exit;
};
/*
// Psar has changed direction so we want to exit at breakeven
if psar < Ask and ceil(ord(i, VAL_OPENPRICE)*10000) != ceil(ord(I, VAL_TAKEPROFIT)*10000) then
{
ModifyOrder(ord(I, VAL_TICKET), ord(I, VAL_OPENPRICE), ord(I, VAL_OPENPRICE), ord(I, VAL_OPENPRICE), Orange);
Exit;
};
*/
};
};
};

 




 

Code to difficult? Find somebody to help you with coding here.

 



Author: 2Extreme4U
Source: www.xeatrade.com

 

View similar:

Bolliger Breakout Ver 1.0
ASC Trend ++ Expert(v.2.1)
5min USDCHF
2ways system
B % oscillator system
Always In Play
2EMA System-v03
Awesome Oscillator auto Trader
2EMA system
...
 
 
all systems for MetaTrader
all systems

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
PayPalSecure payments by PayPal S4T™ is a part of TAURO EDUCATION NETWORK
 
Privacy note | (c) copyrights systems4trading.com 2006-2009