Search found 13 matches

by treksis
03 Aug 2014
Forum: MultiCharts
Topic: Problem with incorrect entryprice identification.
Replies: 1
Views: 809

Problem with incorrect entryprice identification.

I have 2 strategies running at the same time. First strategy buys only on the whole number and the second one buys only if close finishes with x.50$. Hence, I have 2 entryprices, one at 11$ and the other at 10.5$.(for example) The main problem here is when I want to sell at 1$ profit. The system rec...
by treksis
03 Aug 2014
Forum: MultiCharts
Topic: How to check number of shares sold?
Replies: 3
Views: 1051

Re: How to check number of shares sold?

From wiki : MarketPosition_at_Broker_for_The_Strategy Will will return '17' if the current position at the broker for the strategy is 17 contracts long. Will return '-132' if the current position at the broker for the strategy is 132 contracts short. Will return '0' if the current position at the b...
by treksis
03 Aug 2014
Forum: MultiCharts
Topic: How to check number of shares sold?
Replies: 3
Views: 1051

How to check number of shares sold?

Hi, I'm trying a new strategy and I need to be able to stop the script if the number of shares sold at once, exceeds x amount.

Code: Select all

variable:amount;
amount=50: // 50 shares
if number_of_shares_sold_at_once > amount then
#return.
Is there a way to get the number of shares sold at once?
by treksis
02 Aug 2014
Forum: MultiCharts
Topic: how to stop script when netprofit reaches targetprofit? [SOLVED]
Replies: 1
Views: 897

how to stop script when netprofit reaches targetprofit? [SOLVED]

Hi, I'm testing a strategy and I would like the backtest to close all position and stop the script from running if my netprofit has reached x $. Is there a function to stop the strategy completely when profittarget has been reaches? I can't make that happen with setprofittarget(x$) Also, is there an...
by treksis
01 Aug 2014
Forum: MultiCharts
Topic: How to set stop loss/profit on a whole number? [SOLVED]
Replies: 6
Views: 2686

How to set stop loss/profit on a whole number? [SOLVED]

I am trying to find a way to set the stop loss and the profit target at a whole number. For instance, if I bought "x" shares at "x" price(let's say 25.54$) and I want to set a stop loss at the low whole number(25$) and I want to set the profit target(26$) at the next whole number. How can I make the...
by treksis
31 Jul 2014
Forum: MultiCharts
Topic: How to store and take out data from another graph? [SOLVED]
Replies: 1
Views: 939

How to store and take out data from another graph? [SOLVED]

I want to make a code which sells/buys facebook shares when s&p500 drops in price. Facebook is the 1st/main graph I look at and s&p500 is the second graph I want to refer to. For example, if FB reaches 20bar high but s&p500 drops in price then sell FB this bar on close. condition1=check s&p500 if cl...
by treksis
27 Jul 2014
Forum: MultiCharts
Topic: backtest buying power limitation help
Replies: 1
Views: 984

backtest buying power limitation help

I set up 50000$ as initial capital on the backtester but the backtester exceeds my buying power/cash limit that I have in disposal. How can I make the code so that I won't buy when I don't have enough available money to buy? I've found "GetRTDayTradingBuyingPower" but this one does not seem to be wo...
by treksis
24 Jul 2014
Forum: MultiCharts
Topic: 20 day new high/low [SOLVED]
Replies: 5
Views: 3195

Re: 20 day new high/low [SOLVED]

I use 5min chart the most.
by treksis
23 Jul 2014
Forum: MultiCharts
Topic: 20 day new high/low [SOLVED]
Replies: 5
Views: 3195

20 day new high/low [SOLVED]

Hi, I've been searching a way to find the 20 day high/low and I was only partially able to find the one I thought. The problem here is that if, on the upcoming days the bulls take over and keep breaking new highs, I will have a chain reaction of alerts coming off. So, in order to prevent that I'd li...
by treksis
22 Jul 2014
Forum: MultiCharts
Topic: Need help for simple script coding
Replies: 4
Views: 1340

Re: Need help for simple script coding

Thanks for replying
I finally completed my code by adding tons of if and else statement
by treksis
21 Jul 2014
Forum: MultiCharts
Topic: Need help for simple script coding
Replies: 4
Views: 1340

Need help for simple script coding

Hi, I'm struggling to find a way to close my position when : "Slow Stochastic crosses 80 and close < 10 day moving average. So far It is good. BUT, in case stochastic comes below the OverBought zone(80), and close < 10 day moving average, my command won't execute because of " Slow Stochastic crosses...
by treksis
20 Jul 2014
Forum: MultiCharts
Topic: profit target change help [SOLVED]
Replies: 1
Views: 971

Re: profit target change help [SOLVED]

Found out myself. thank you TJ for the links.
by treksis
18 Jul 2014
Forum: MultiCharts
Topic: profit target change help [SOLVED]
Replies: 1
Views: 971

profit target change help [SOLVED]

Hi, I am new to multicharts and I've been trying to make my own profit target signal. Instead of using $ and % as profit target, how can I make the program to close my short position when slow stochastic reaches less than equal to 50? the code gets compiled but I don't seem to get any trades done. C...

Go to advanced search