Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I wrote 2 signals to open a long position according to the prior bar's height. Buy stop 1 tick above the prior bar's high and place a stop loss order 1 or 2 ticks below the low of the prior two bars. Take profit when the target reaches half of the risk. Now my signals show the entries and exits on the chart but however, it cannot execute orders at real time. The platform does nothing except drawing the orders on the chart and yet no real order is placed. I don't know what's gone wrong. Please help.
Can you help answer these questions from other members on NexusFi?
Below is the code for the entry signal. Max_Risk is the maximal risk tolerated for each trade in dollar amount and PerContract_Risk is the maximal risk tolerated per futures contract.
using System;
using System.Drawing;
using System.Linq;
using PowerLanguage.Function;
using ATCenterProxy.interop;
namespace PowerLanguage.Strategy
{
[IOGMode(IOGMode.Disabled)]
public class MackBuyStop_Open : SignalObject
{
// Create the inputs
[Input]
public double Max_Risk { get; set; }
[Input]
public double PerContract_Risk { get; set; }
public MackBuyStop_Open(object _ctx) : base(_ctx)
{
// Give the inputs a default value
Max_Risk = 880;
PerContract_Risk = 300;