I need help in my Strategy - NinjaTrader | futures io social day trading
futures io futures trading


I need help in my Strategy
Updated: Views / Replies:697 / 7
Created: by fernando 2014 Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

I need help in my Strategy

  #1 (permalink)
Trading Apprentice
Barcelona Spain
 
Futures Experience: Beginner
Platform: ninjatrader
Favorite Futures: futures
 
Posts: 6 since Nov 2014
Thanks: 4 given, 0 received

I need help in my Strategy

Hello friends I have a small problem and hope for help me to solve it ...
I have designed a estartegy that gives very good results but I put it to work is not executed and can only use copying their movements with one minute late.
Could you tell me how to make it work in automatic way
many graccias
Deputy picture of the results it gives me a year, with 10 per operation.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
 Vendor: www.probabletrades.com 
OC, California, USA
 
Futures Experience: Advanced
Platform: IB/TWS, NinjaTrader, thinkorswim
Favorite Futures: stocks, options, futures, VIX
 
shodson's Avatar
 
Posts: 1,859 since Jun 2009
Thanks: 480 given, 3,255 received



fernando 2014 View Post
Hello friends I have a small problem and hope for help me to solve it ...
I have designed a estartegy that gives very good results but I put it to work is not executed and can only use copying their movements with one minute late.
Could you tell me how to make it work in automatic way
many graccias
Deputy picture of the results it gives me a year, with 10 per operation.

You need to find or hire a programmer to automate your strategy, or learn how to program a strategy yourself. Follow this link

En español: necesitas encontrar alguíen que puede programar o automatizar tu estrategia. Sigue aquí

Reply With Quote
The following 2 users say Thank You to shodson for this post:
 
  #4 (permalink)
Trading Apprentice
Regina Canada
 
Futures Experience: Advanced
Platform: NT7, ToS
Favorite Futures: ES, Stocks, Options (Naked)
 
Posts: 6 since Dec 2011
Thanks: 1 given, 2 received


fernando 2014 View Post
Hello friends I have a small problem and hope for help me to solve it ...
I have designed a estartegy that gives very good results but I put it to work is not executed and can only use copying their movements with one minute late.
Could you tell me how to make it work in automatic way
many graccias
Deputy picture of the results it gives me a year, with 10 per operation.

Does it compile? I can look at it if you'd like. You would have to tell me how it is supposed to work and then I could tell you why it doesn't

ClimberMel

Reply With Quote
The following user says Thank You to ClimberMel for this post:
 
  #5 (permalink)
Trading Apprentice
Barcelona Spain
 
Futures Experience: Beginner
Platform: ninjatrader
Favorite Futures: futures
 
Posts: 6 since Nov 2014
Thanks: 4 given, 0 received


ClimberMel View Post
Does it compile? I can look at it if you'd like. You would have to tell me how it is supposed to work and then I could tell you why it doesn't

ClimberMel

Yes ,I can compile perfectly and I can do a bactesting for a year and I have a very good results , around 80.000 euros only buying 1 action .But when I try to do the same in realtime , the strategy never works is all time stoped .
Tell me how can I show you the strategy if you want have a look , thanks a lot


PD:spikoloco no puedo enviarte mensages privados , no me deja , diem que necesitas para ayudarme amigo , gracias


Last edited by fernando 2014; January 6th, 2015 at 05:10 AM.
Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Regina Canada
 
Futures Experience: Advanced
Platform: NT7, ToS
Favorite Futures: ES, Stocks, Options (Naked)
 
Posts: 6 since Dec 2011
Thanks: 1 given, 2 received


fernando 2014 View Post
Yes ,I can compile perfectly and I can do a bactesting for a year and I have a very good results , around 80.000 euros only buying 1 action .But when I try to do the same in realtime , the strategy never works is all time stoped .
Tell me how can I show you the strategy if you want have a look , thanks a lot


PD:spikoloco no puedo enviarte mensages privados , no me deja , diem que necesitas para ayudarme amigo , gracias

You can upload it or if you'd rather not post it, you could email it to me. Then I can go through it and see why it won't run in real time.

ClimberMel

at gmail

Reply With Quote
The following user says Thank You to ClimberMel for this post:
 
  #7 (permalink)
Trading Apprentice
Barcelona Spain
 
Futures Experience: Beginner
Platform: ninjatrader
Favorite Futures: futures
 
Posts: 6 since Nov 2014
Thanks: 4 given, 0 received


ClimberMel View Post
You can upload it or if you'd rather not post it, you could email it to me. Then I can go through it and see why it won't run in real time.

ClimberMel

at gmail

ok here it is the strategy ...
Tthanks for your help anyway

As you could see it is correct but never run in real time I have to reload ninja script every minute wiht hot key to follow it and win money .So heavy to do every time like this .
But the back testing it is so good ...




""

#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
/// <summary>
/// Enter the description of your strategy here
/// </summary>



[Description("Macd estrategia ")]
public class ESESTRATEGIA : Strategy
{
//#region Variables
// Wizard generated variables
// User defined variables (add any user defined variables below)
private int Target1 = 100;

private int cierrocompra = 0;
private int cierroventa=0;
private int compra =0;
private bool compro=false;
private bool vendo=false;
private int Stop = 50;
private bool _playAlert;
private string _longAlert = "Alert4.wav";
private string _shortAlert = "Alert4.wav";
private double a=0;
private int mostrar =0;
private int mostrar2 =0;
private double sumayi =0;
private double sumaxi =0;
private double n=1;
private double xm=0;
private double ym=0;
private double difxi=0;
private double difyi=0;
private double xi=0;
private double yi=0;
private double cuadrados=0;
private double divisor=0;
private double dividendo=0;
private double productoxy=0;
private double b=0;
private double final=0;
private int finalint=0;
private double y=0;
private double xo=0;
private double yo=0;
private double xf=0;
private double yf=0;
private double ygo=0;
private double ygf=0;
private double p=0;
private double yregresion=0;
private int intervaloreg=1;
private bool alertOnBreak=true;
private bool showHistory=true;
private int strength=1;
private int Signal=1;

//#endregion

/// <summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
{

Add(MACD(12, 26, 9));
Add(RSI(14, 3));
Add(SMMA(50));
CalculateOnBarClose = true;

TraceOrders = true;
}
private void GoLong()
{
SetStopLoss("CierreStoplossC", CalculationMode.Price, Close[0] - (Stop*TickSize), false);
SetProfitTarget("ObjetivoC", CalculationMode.Price, Close[0] + (Target1*TickSize));
EnterLong(10);
PlaySound(LongAlert);

Print("!!!!!!!!! ESESTRATEGIA---------> COOOOOMPROOOOOOOOO !!!!!!!!");
Print(Time[0]);
}
private void GoShort()
{
SetStopLoss("CierreStopV", CalculationMode.Price, Close[0] + (Stop*TickSize), false);
SetProfitTarget("ObjetivoV", CalculationMode.Price, Close[0] - (Target1*TickSize));
EnterShort(10);
PlaySound(LongAlert);
PlaySound(LongAlert);
Print("!!!!!!ESESTRATEGIA---------> VEEEENDOOOOOOOOOOOOOOOOOO!!!!!!!!!" + Close[0]);
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
///

protected override void OnBarUpdate()
{
Megan();
}
private void Megan()
/// protected override void OnBarUpdate()
{
// Condition set 1




Print(" ES estrategia avanzando "+ Close[0]);



{
if (MACD(12, 26, 9).Avg[5] > MACD(12, 26, 9)[5]
&& MACD(12, 26, 9).Avg[0] <= MACD(12, 26, 9)[0]
&& MACD(12, 26, 9).Avg[-1] < MACD(12, 26, 9)[-1]
&& Close[-1] > Close[0])

{


if (Close[-1]-Close[0]>=1.2)

{
if (Position.MarketPosition == MarketPosition.Flat)
{
GoLong();

;
}
if (Position.MarketPosition == MarketPosition.Short)
{
ExitShort();
GoLong();


}


}
}

}
if (MACD(12, 26, 9).Avg[5] < MACD(12, 26, 9)[5]
&& MACD(12, 26, 9).Avg[0] >= MACD(12, 26, 9)[0]
&& MACD(12, 26, 9).Avg[-1] > MACD(12, 26, 9)[-1]
&& Close[-1] > Close[0])

{
if (Position.MarketPosition == MarketPosition.Long)
{
ExitLong(10);

Print("!!!!!ESESTRATEGIA CIERROOOOOOOOOOOOOOOOOOOOOOOO COMPRAAAAAAAAA!!!! !!!!!! " + Close[0]);


}

}
if (MACD(12, 26, 9).Avg[5] < MACD(12, 26, 9)[5]
&& MACD(12, 26, 9).Avg[0] >= MACD(12, 26, 9)[0]
&& MACD(12, 26, 9).Avg[-1] > MACD(12, 26, 9)[-1]
&& Close[-1] < Close[0])

{ if (Position.MarketPosition == MarketPosition.Long)
{

ExitLong(10);

Print("!!!!ESESTRATEGIA CIERROOOOOOOOOOOOOOOOOOOOOOOO COMPRAAAAAAAAA !!!!!!" + Close[0]);

}



if (MACD(12, 26, 9).Avg[5] < MACD(12, 26, 9)[5]
&& MACD(12, 26, 9).Avg[0] >= MACD(12, 26, 9)[0]
&& MACD(12, 26, 9).Avg[-1] > MACD(12, 26, 9)[-1]
&& Close[-1] < Close[0])

{
if (Close[0]-Close[-1]>=1.2)

{
if (Position.MarketPosition == MarketPosition.Flat)
{
GoShort();

}

if (Position.MarketPosition == MarketPosition.Long)
{
ExitLong();
GoShort();

}
}


}


}



// Filtro 1



if (MACD(12, 26, 9).Avg[5] < MACD(12, 26, 9)[5]
&& MACD(12, 26, 9).Avg[0] >= MACD(12, 26, 9)[0]
&& MACD(12, 26, 9).Avg[-1] > MACD(12, 26, 9)[-1]
&& Close[-1] < Close[0])

{

if (Close[0]-Close[-1]>=1.2)

{
if (Position.MarketPosition == MarketPosition.Flat)
{
GoShort();


}
if (Position.MarketPosition == MarketPosition.Long)
{
ExitLong();
GoShort();


}
}
}

if (MACD(12, 26, 9).Avg[5] > MACD(12, 26, 9)[5]
&& MACD(12, 26, 9).Avg[0] <= MACD(12, 26, 9)[0]
&& MACD(12, 26, 9).Avg[-1] < MACD(12, 26, 9)[-1]
&& Close[-1] < Close[0])
{
if (Position.MarketPosition == MarketPosition.Flat)
{


}
if (Position.MarketPosition == MarketPosition.Short)
{
ExitShort(10);

Print("!!!!ESESTRATEGIA CIERROOOOOOOOOOOOOOOOOOOOOOOO VENTAAAAAAAAAA!!!!!!" + Close[0]);

}
}
if (MACD(12, 26, 9).Avg[5] > MACD(12, 26, 9)[5]
&& MACD(12, 26, 9).Avg[0] <= MACD(12, 26, 9)[0]
&& MACD(12, 26, 9).Avg[-1] < MACD(12, 26, 9)[-1]
&& Close[-1] > Close[0])
{
if (Position.MarketPosition == MarketPosition.Flat)
{


}
if (Position.MarketPosition == MarketPosition.Short)
{
ExitShort(10);
Print("!!!!ESESTRATEGIA CIERROOOOOOOOOOOOOOOOOOOOOOOO VENTAAAAAAAAA!!!!!!" + Close[0]);

}

if (MACD(12, 26, 9).Avg[5] > MACD(12, 26, 9)[5]
&& MACD(12, 26, 9).Avg[0] <= MACD(12, 26, 9)[0]
&& MACD(12, 26, 9).Avg[-1] < MACD(12, 26, 9)[-1]
&& Close[-1] > Close[0])
{


if (Close[-1]-Close[0]>=1.2)

{
if (Position.MarketPosition == MarketPosition.Short)
{
ExitShort();
GoLong();

}
if (Position.MarketPosition == MarketPosition.Flat)
{

GoLong();

}
}
}




}








}




#region Properties
public bool PlayAlert
{
get { return _playAlert; }
set { _playAlert = value; }
}


public string LongAlert
{
get { return _longAlert; }
set { _longAlert = value; }
}


public string ShortAlert
{
get { return _shortAlert; }
set { _shortAlert = value; }
}
#endregion

}
}

""

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
Barcelona Spain
 
Futures Experience: Beginner
Platform: ninjatrader
Favorite Futures: futures
 
Posts: 6 since Nov 2014
Thanks: 4 given, 0 received

Finally I solve my self tahnaks anywaya Friends

Reply With Quote

Reply



futures io > > > > I need help in my Strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Call ATM Strategy on an automated strategy to control position jsengxx NinjaTrader Programming 7 May 31st, 2016 05:51 PM
Utility To Transpose Optimized Strategy Values From Excel Output to Actual Strategy mercuryfx NinjaTrader 5 April 7th, 2012 04:59 PM
Ninjatrader7 ATM Strategy combine with Strategy Wizard Ninja Script schuster21 NinjaTrader Programming 4 July 4th, 2011 05:39 PM
Ninja Strategy multi-timeframe issue/Strategy to indicator nw123 NinjaTrader Programming 2 December 20th, 2009 07:24 PM


All times are GMT -4. The time now is 10:47 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-14 in 0.16 seconds with 19 queries on phoenix via your IP 54.90.207.75