Skip to content

Instantly share code, notes, and snippets.

//@version=6
indicator("TTR + Supertrend + NY Clarity Filter [Indicator]", overlay=true)
// --- Supertrend Parameters ---
atrPeriod = input.int(10, "ATR Length", minval=1)
factor = input.float(3.0, "Factor", minval=0.01, step=0.01)
// --- TTR Inputs ---
ttrLongCondition = ta.crossover(ta.sma(close, 5), ta.sma(close, 20))
ttrShortCondition = ta.crossunder(ta.sma(close, 5), ta.sma(close, 20))
//@version=6
strategy("TTR + Supertrend + NY Clarity Filter", overlay=true)
// --- Supertrend Parameters ---
atrPeriod = input.int(10, "ATR Length", minval=1)
factor = input.float(3.0, "Factor", minval=0.01, step=0.01)
// --- TTR Inputs (simplified example placeholders) ---
ttrLongCondition = ta.crossover(ta.sma(close, 5), ta.sma(close, 20)) // Replace with actual TTR logic
ttrShortCondition = ta.crossunder(ta.sma(close, 5), ta.sma(close, 20)) // Replace with actual TTR logic
private CreditCardTransaction ProcessCustomerPaymentProfileTransaction(OrderContext context, transactionTypeEnum transactionType) {
//============================================
//New Transaction Method by Paul -- 02/28/2018
//============================================
var creditCardInformation = (CreditCardInformation) context.BillingInformation;
//Create or update the AuthNet Customer Profile and Payment Profile
EnsurePaymentProfile(context, creditCardInformation);
//Authenticate with Authorize.net
@valmont
valmont / gist:5374088
Created April 12, 2013 18:27
Updated StructureMapDependencyScope.
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="StructureMapDependencyScope.cs" company="Web Advanced">
// Copyright 2012 Web Advanced (www.webadvanced.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software