Strategy that sends an order at the moment a List indicates - MultiCharts | futures io social day trading
futures io futures trading


Strategy that sends an order at the moment a List indicates
Updated: Views / Replies:279 / 0
Created: by Maikel Attachments:4

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 100,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
 

Strategy that sends an order at the moment a List indicates

  #1 (permalink)
Madrid
 
 
Posts: 7 since Jan 2018
Thanks: 0 given, 0 received

Strategy that sends an order at the moment a List indicates

Hello, my name is Maikel, my level of Multicharts.Net is not yet very high,

I have the following problem that I have been trying to solve for weeks.

The only objective of the signal algorithm that I intend to do is to open orders at the exact time instant that a TimeTime List indicates, perhaps someone will find a better and easier way.

I think it's very interesting because what I want to do is to send orders that are previously written in a Global Static List,
in the script that I attach the orders are directly written from the script itself, but in the future I want to do it from an
indicator, I think it will be very useful in order to opening operations from an indicator, sending it before to a signal script.

The script is already working, almost properly, the only problem it has if that the operations are opened a candle before the right candle. I do not know why. In the script I draw an arrow object with the same logic that the ordersm and those arrows do are right positioned in the right candle.

Resuming, What I am doing is basically this (the full script is attached):
---------------------------------------------------------------------------------------------------------------------------------------

//Here I put the Date Time instant orders in Globals.OrdList List
Globals.OrdList.Add(new Orden()
{
DatTim = Convert.ToDateTime("19/01/2018 11:10:00"),
LargCort = "Long"
});


//Here I copy the orders from Globals.OrdList List to OrdImport List
while ((p < Globals.OrdList.Count) & (Globals.OrdList.Count > 0))
{
OrdImport.Add(new OrdenImp()
{
DatTim = Globals.OrdList[p].DatTim,
LargCort = Globals.OrdList[p].LargCort
});
p = p + 1;
}


if (StrategyInfo.MarketPosition == 0) //IF WE DO NOT HAVE ANY OPERATION OPENED (IT IS ALWAYS CERO, I DO NOT KNOW WHY)
{


if (LargCortAux == "Long")
{
Output.WriteLine("Long en Bars.CurrentBar: {0} - DateTime: {1} - Price: {2:.00}",Bars.CurrentBar,BarsOfData(1).Time[0],BarsOfData(1).Close[0]);

BuyOrder.Send();

LargCortAux = "nothing";


//-DRAW ARROW ------------------------
IArrowObject arrowData1 = DrwArrow.Create(
new ChartPoint(Bars.CurrentBar + 1, BarsOfData(2).Close[0]), false);
arrowData1.Size = 25;
//----------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------


I use 15m timeframe for the main chart, and 1tick data sub chart (hiden).

It is necesary to add Globals. And compile all (ctrl +F7).

The result of one example operation is in an image attached.

As I said at the beginning, the only objective of the signal algorithm that I intend to do is to open orders at the exact time instant that a TimeTime List indicates, maybe someone will get a better and easier way.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


WSSignal.wsp

Globals.cs

Signal.cs


Last edited by Maikel; February 3rd, 2018 at 06:40 AM.
Reply With Quote

Reply



futures io > > > > Strategy that sends an order at the moment a List indicates

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Show us your trading desks and win over $5,000 in prizes w/Jigsaw Trading

September
 

Webinar: The Best Entries and Exits in trading & in life w/Agustin Lebron

Elite only
 

Webinar: NinjaTrader 8 Newest Features Release Sneak Peek

Sep 26
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with C# list in Strategy vantojo NinjaTrader Programming 7 October 27th, 2017 11:14 AM
Retrieve ATM Strategy Template List drmartell NinjaTrader Programming 3 December 27th, 2015 10:51 PM
print strategy Position list avivi TradeStation 0 November 26th, 2014 12:26 PM
ATM Strategy: Limit order & stop loss order at the same time in the market? DrE6 NinjaTrader 2 June 21st, 2013 01:12 PM
get order list of a strategy rana NinjaTrader 1 May 3rd, 2013 05:57 AM


All times are GMT -4. The time now is 11:53 PM. (this page content is cached, log in for real-time version)

Copyright © 2019 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